Difference between UTC and GMT Standard Time in .NET

后端 未结 7 999
臣服心动
臣服心动 2020-11-27 04:45

In .NET, the following statements return different values:

Response.Write(
  TimeZoneInfo.ConvertTime(
    DateTime.Parse("2010-07-01 5:30:00.000"),         


        
7条回答
  •  庸人自扰
    2020-11-27 05:31

    The difference is as follows:

    • Greenwich Mean Time (GMT) is a term originally referring to mean solar time at the Royal Observatory in Greenwich, London. whereas
    • Coordinated Universal Time (UTC) (French: Temps Universel Coordonné) is a time standard based on International Atomic Time (TAI) with leap seconds added at irregular intervals to compensate for the Earth's slowing rotation
    • Day Light Saving Time (DST) on the other hand is advancing clocks To and for with season changes, To make max use of day light.

      "It is observed in many countries but not all". It might be variable, as last summer some countries like Pakistan, decided to bring back clocks a month later than they normally do.

    • World Time Zones is a good resource for up-to date time information around the globe.

    Hope this helps

提交回复
热议问题