我需要有关此日期“2015-05-12T00:00:00Z”的一些信息。 “T”和“Z”是什么意思?任何人都可以帮助我?我不知道他们的意思。我需要将此数据转换为另一种格式
最佳答案
ISO 8601
ISO 8601标准定义了将日期时间值表示为文本的格式。
T
只是时间部分开始的标记。 Z
是+00:00
的缩写, 意思 UTC (零时分秒的 offset)。根据军事和航空传统发音为“Zulu”。 来自维基百科文章 ISO 8601
A single point in time can be represented by concatenating a complete date expression, the letter
T
as a delimiter, and a valid time expression. For example "2007-04-05T14:30".[...]
If the time is in UTC, add a
Z
directly after the time without a space.Z
is the zone designator for the zero UTC offset. "09:30 UTC" is therefore represented as "09:30Z" or "0930Z". "14:45:15 UTC" would be "14:45:15Z" or "144515Z".
关于time - 'T' 和 'Z' 在日期中的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30209941/