DateTime vs DateTimeOffset

前端 未结 10 1950
刺人心
刺人心 2020-11-22 00:23

Currently, we have a standard way of dealing with .NET DateTime\'s in a TimeZone aware way: Whenever we produce a DateTime we do it in UTC (e.g. us

10条回答
  •  春和景丽
    2020-11-22 00:45

    Most of the answers are good , but i thought of adding some more links of MSDN for more information

    • A brief History of DateTime - By Anthony Moore by BCL team
    • Choosing between Datetime and DateTime Offset - by MSDN
    • Do not forget SQL server 2008 onwards has a new Datatype as DateTimeOffset
    • The .NET Framework includes the DateTime, DateTimeOffset, and TimeZoneInfo types, all of which can be used to build applications that work with dates and times.
    • Performing Arithmetic Operations with Dates and Times-MSDN

提交回复
热议问题