time - 'T' 和 'Z' 在日期中的含义

标签 time

我需要有关此日期“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/

    相关文章:

    java - Java中Instant类的构造函数?

    返回数据的 PHP 格式日期

    java - 在 SQLite 中以 12 小时格式存储时间并在 Android 中对其进行一些计算

    java - 如果将 ArrayList 引用为 List,为什么性能会有所不同?

    java - 在 Firebase 数据库中保存 LocalDate (Java.time) 对象

    python - 为什么我无法将其正确插入到 Django 中?

    javascript - 在 JavaScript 中如何在循环中添加延迟

    go - 在golang中全局设置时区

    c# - 计算 for 循环的大致运行时间

    time - 使用time.Format时的本地化