DateTimeKind 不会更改 UTC/Local/Unspecified 之间日期的任何部分
DateTimeKind doesn't change any part of the date between UTC/Local/Unspecified
这怎么可能?我预计 UTC 和本地时间至少相差 1 小时
在 visual studio 中使用 C#
在 azure 上查询 cosmosDB 时出现问题
As per the MSDN Docs, DateTimeKind Enumeration Specifies whether
a DateTime object represents a local time, a Coordinated Universal
Time (UTC), or is not specified as either local time or UTC.
这意味着,它不会给你转换后的时间,但是,DateTimeKind 枚举的成员用于本地时间和协调世界时 (UTC) 之间的转换操作,但不用于比较或算术操作。
这怎么可能?我预计 UTC 和本地时间至少相差 1 小时
在 visual studio 中使用 C#
在 azure 上查询 cosmosDB 时出现问题As per the MSDN Docs, DateTimeKind Enumeration Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.
这意味着,它不会给你转换后的时间,但是,DateTimeKind 枚举的成员用于本地时间和协调世界时 (UTC) 之间的转换操作,但不用于比较或算术操作。