“T"和“Z"在日期中的含义 [英] What 'T' and 'Z' means in date
问题描述
我需要有关此日期2015-05-12T00:00:00Z"的一些信息.T"和Z"是什么意思?任何人都可以帮助我?我不知道他们的意思.我需要将此数据转换为另一种格式
I need some information about this date '2015-05-12T00:00:00Z'. What does it mean 'T' and 'Z'? Anyone can help me?I don't know how they mean. I need to convert this data in another format
推荐答案
ISO 8601
ISO 8601 标准定义了将日期时间值表示为文本的格式.
ISO 8601
The ISO 8601 standard defines formats for representing date-time values as text.
- The
T
is just a marker for where the time part begins. - The
Z
is an abbreviation of+00:00
, meaning UTC (an offset of zero hour-minutes-seconds). Pronounced "Zulu" per military and aviation tradition.
来自关于 ISO 8601
单个时间点可以通过连接完整的日期表达式、作为分隔符的字母 T
和有效的时间表达式来表示.例如2007-04-05T14:30".
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".
[...]
如果时间是UTC,直接在时间后面加上一个Z
,不要有空格.Z
是零 UTC 偏移的区域指示符.因此,09:30 UTC"表示为09:30Z"或0930Z".14:45:15 UTC"将是14:45:15Z"或144515Z".
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".
这篇关于“T"和“Z"在日期中的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!