HTML:时间格式中的字母 T - 有什么用?

标签 html time tags format

文档http://www.w3.org/TR/NOTE-datetime

说了很多关于日期和时间格式的内容:

Examples

1994-11-05T08:15:30-05:00 corresponds to November 5, 1994, 8:15:30 am, US Eastern Standard Time.

1994-11-05T13:15:30Z corresponds to the same instant.

完整的日期加上小时、分钟、秒和小数点 第二 YYYY-MM-DDThh:mm:ss.sTZD(例如 1997-07-16T19:20:30.45+01:00)

哪里:

 YYYY = four-digit year
 MM   = two-digit month (01=January, etc.)
 DD   = two-digit day of month (01 through 31)
 hh   = two digits of hour (00 through 23) (am/pm NOT allowed)
 mm   = two digits of minute (00 through 59)
 ss   = two digits of second (00 through 59)
 s    = one or more digits representing a decimal fraction of a second
 TZD  = time zone designator (Z or +hh:mm or -hh:mm)

但是,1994-11-05T08:15:30 中的 T 是做什么用的?

最佳答案

来自格式部分的第二段:

Note that the "T" appears literally in the string, to indicate the beginning of the time element, as specified in ISO 8601.

关于HTML:时间格式中的字母 T - 有什么用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14642141/

相关文章:

javascript - 带增量的动态表单字段创建

在 Θ(n) 时间内对列表进行排序的算法

java - 等待服务器给出的答复给定的时间

android - 更改选项卡图标android项目

swift - 尝试调用长按手势并运行命令,但在函数中使用选择器时遇到 SIGABRT 错误。什么没有连接?

javascript - Svg vs Canvas 和圆形对象的渲染时间

javascript - Intro.js:突出显示区域未按预期工作

javascript - 将自定义指令中的范围正确应用到 AngularJS 中的子元素

PHP - 将两组数字(小时和分钟)转换为时间

java - Struts 2.s :property. 如何获取名称作为参数传递给jsp的变量的值?