I cannot use DateTime.Now
because the server is not necessarily located in Calfornia
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Two options:
1) Use
TimeZoneInfo
andDateTime
:2) Use my Noda Time project :)
Obviously I'm biased, but I prefer to use Noda Time, primarily for three reasons:
DateTime
trying to represent three different kinds of value, and having no concept of just representing "a date" or "a time of day"