javascript – GMT与UTC日期

我有一个内置JavaScript的日历与PHP比较日期。 JavaScript日期对象使用PHP设置,但是,当我比较未来的日期时,它们似乎不同步。

PHP设置为GMT,JavaScript设置为UTC;这些标准如何不同,这是否会导致问题?

Coordinated Universal Time维基百科:

Coordinated Universal Time (UTC) 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.

Greenwich Mean Time维基百科:

UTC is an atomic time scale which only approximates GMT with a tolerance of 0.9 second

http://stackoverflow.com/questions/1612148/gmt-vs-utc-dates

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:javascript – GMT与UTC日期