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).

相关文章

应用场景 C端用户提交工单、工单创建完成之后、会发布一条工...
线程类,设置有一个公共资源 package cn.org.chris.concurre...
Java中的数字(带有0前缀和字符串)
在Java 9中使用JLink的目的是什么?
Java Stream API Filter(过滤器)
在Java中找到正数和负数数组元素的数量