了解 Etc/GMT 时区 [英] Understanding the Etc/GMT time zone

查看:118
本文介绍了了解 Etc/GMT 时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple 在从 App Store 返回自动续期订阅收据时使用 Etc/GMT 时区的理由是什么.

What is the rationale behind Apple using Etc/GMT timezone when they return the receipt from the App Store for auto-renewable subscriptions.

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

What exactly is the Etc/GMT time zone? Does the Java SDK understand this time zone? Or do I have to use other third-party libraries like Joda-Time?

推荐答案

Etc/GMT 不是与 UTC 或 GMT 严格相同的东西.只有当偏移量为 0 时,它们才代表同一时刻.在所有其他情况下,它们完全不同.

Etc/GMT is not strictly the same thing as UTC or GMT. They represent the same instant in time only when the offset is 0. In all other cases, they are quite different.

Apple 在此处解释了这一名称.

Apple explains the designation here.

直接来自链接的引用给出了一个例子:

A quote directly from the link gives an example:

我们在区域名称和输出缩写中使用 POSIX 风格的符号,尽管这与许多人的预期相反.POSIX 在格林威治以西出现积极迹象,但许多人预计格林威治以东的积极迹象.例如,TZ='Etc/GMT+4' 使用缩写GMT+4",对应于 UTC 后 4 小时(即格林威治以西)尽管许多人希望它平均比 UTC 早 4 小时(即格林威治以东).

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

这篇关于了解 Etc/GMT 时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆