What 'T' and 'Z' means in date

前端 未结 1 987
遇见更好的自我
遇见更好的自我 2020-12-30 19:05

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 d

相关标签:
1条回答
  • 2020-12-30 19:33

    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.

    From the Wikipedia article on 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".

    0 讨论(0)
提交回复
热议问题