我使用了这样的排序列表:SortedList
图片:
调试窗口转储
**kvpCurrent.Key** {2020-11-01 01:00:00 -05:00} System.DateTimeOffset
Date {2020-11-01 00:00:00} System.DateTime
DateTime {2020-11-01 01:00:00} System.DateTime
Day 0x00000001 int
DayOfWeek Sunday System.DayOfWeek
DayOfYear 0x00000132 int
Hour 0x00000001 int
LocalDateTime {2020-11-01 01:00:00} System.DateTime
Microsecond 0x00000000 int
Millisecond 0x00000000 int
Minute 0x00000000 int
Month 0x0000000b int
Nanosecond 0x00000000 int
Offset {-05:00:00} System.TimeSpan
Second 0x00000000 int
Ticks **0x08d87e01753e2800** long
TimeOfDay {01:00:00} System.TimeSpan
TotalOffsetMinutes 0xfffffed4 int
UtcDateTime {**2020-11-01 06:00:00**} System.DateTime
UtcTicks 0x08d87e2b5e143000 long
Year 0x000007e4 int
Static members
Non-Public members
**kvpPrevious.Key** {2020-11-01 01:55:00 -04:00} System.DateTimeOffset
Date {2020-11-01 00:00:00} System.DateTime
DateTime {2020-11-01 01:55:00} System.DateTime
Day 0x00000001 int
DayOfWeek Sunday System.DayOfWeek
DayOfYear 0x00000132 int
Hour 0x00000001 int
LocalDateTime {2020-11-01 01:55:00} System.DateTime
Microsecond 0x00000000 int
Millisecond 0x00000000 int
Minute 0x00000037 int
Month 0x0000000b int
Nanosecond 0x00000000 int
Offset {-04:00:00} System.TimeSpan
Second 0x00000000 int
Ticks **0x08d87e0924323200** long
TimeOfDay {01:55:00} System.TimeSpan
TotalOffsetMinutes 0xffffff10 int
UtcDateTime **{2020-11-01 05:55:00}** System.DateTime
UtcTicks 0x08d87e2aab43d200 long
Year 0x000007e4 int
Static members
Non-Public members
抱歉,我修改问题时才看到。
有一个 UtcTicks 属性!!!!对不起!!!
我会把它放在那里,以防万一有人会犯和我一样的错误!!!