timezone - Unix 时间戳 'Z' 中的 '120314170138Z' 是什么意思?

标签 timezone x509certificate unix-timestamp timestamp

我有一个 X.509 证书,它具有以下 2 个时间戳:

['validFrom'] = String(13) "120314165227Z"
['validTo']   = String(13) "130314165227Z"

后缀字符“Z”是什么意思。它指定时区吗?

最佳答案

是的。 “Z”代表祖鲁时间,也是 GMT 和 UTC。

来自http://en.wikipedia.org/wiki/Coordinated_Universal_Time :

The UTC time zone is sometimes denoted by the letter Z—a reference to the equivalent nautical time zone (GMT), which has been denoted by a Z since about 1950. The letter also refers to the "zone description" of zero hours, which has been used since 1920 (see time zone history). Since the NATO phonetic alphabet and amateur radio word for Z is "Zulu", UTC is sometimes known as Zulu time.

从技术上讲,由于航海时区的定义是基于经度位置,因此 Z 时间与实际的 GMT 时区并不完全相同。但是,由于它主要用作引用时间,因此只要每个人都使用相同的引用,它适用于地球的哪个区域并不重要。

再次来自维基百科,http://en.wikipedia.org/wiki/Nautical_time :

Around 1950, a letter suffix was added to the zone description, assigning Z to the zero zone, and A–M (except J) to the east and N–Y to the west (J may be assigned to local time in non-nautical applications; zones M and Y have the same clock time but differ by 24 hours: a full day). These were to be vocalized using a phonetic alphabet which pronounces the letter Z as Zulu, leading sometimes to the use of the term "Zulu Time". The Greenwich time zone runs from 7.5°W to 7.5°E longitude, while zone A runs from 7.5°E to 22.5°E longitude, etc.

关于timezone - Unix 时间戳 'Z' 中的 '120314170138Z' 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9706688/

相关文章:

vbscript - 在 vbscript 中处理时区

java - input.equals ("string here")不工作

java - 如何在 Java 中提取 X509 证书字段

IIS 客户端证书无效。返回 403 错误

php - 为什么我们需要从 1970 年开始计算时间?

datetime - 如何在 Kotlin 标准库(多平台)上获取当前的 unix 时间

perl - DateTime、DBIx::Class 和 SQLite 的时区问题(请假 5 小时)

c - 我正在尝试在 C 中构建 RFC3339 时间戳。如何获取时区偏移量?

c# - Azure API 服务器无法验证请求

shell - 如何在 unix 中检查文件是否超过 30 分钟