java - 了解 Etc/GMT 时区

标签 java iphone timezone app-store jodatime

Apple 使用 Etc/GMT 时区从 App Store 返回自动续订订阅收据时的基本原理是什么。

Etc/GMT 时区究竟是什么? Java SDK 是否理解这个时区?还是我必须使用其他第三方库,例如 Joda-Time ?

最佳答案

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

Apple 解释了该名称 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).

关于java - 了解 Etc/GMT 时区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7303580/

相关文章:

iphone - 如何在 objective-c 中的现有字符串的开头添加一个字符?

java - 如何在不更改原始对象的情况下复制对象 - java

java - 如何在 Android 中为图像设置边框?

java - Cassandra、Jersey Rest api 会随着每个 Rest 请求而增加线程、内存使用量和端口

iphone - 如何覆盖 ABNewPersonViewController 中的 "Done"按钮

ios - 除了预设的之外,我如何制作自己的自定义 UIColor?

android - 时区和夏令时

ruby-on-rails - 如何验证和解析带有用户时区的 ISO 8601 时间戳?

java - 使JCheckBox无法被选中

Postgresql:错误:时区目录堆栈溢出