java – 了解Etc / GMT时区

前端之家收集整理的这篇文章主要介绍了java – 了解Etc / GMT时区前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
苹果使用Etc / GMT时区从App Store返回自动续订订阅的收据后的理由是什么.

Etc / GMT时区是什么? Java SDK是否了解这个时区?还是要使用像Joda-Time这样的其他第三方库?

解决方法

Etc / GMT与UTC或GMT不是完全相同的.它们在偏移量为0时表示相同的时刻.在所有其他情况下,它们是完全不同的.

苹果解释了名称here.

直接从链接引用的例子就是:

We use POSIX-style signs in the Zone names and the output abbreviations,even though this is the opposite of what many people expect. POSIX has positive signs west of Greenwich,but many people expect positive signs east of Greenwich. For example,TZ=’Etc/GMT+4′ uses the abbreviation “GMT+4” and corresponds to 4 hours behind UTC (i.e. west of Greenwich) even though many people would expect it to mean 4 hours ahead of UTC (i.e. east of Greenwich).

原文链接:https://www.f2er.com/java/124793.html

猜你在找的Java相关文章