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

时间:2013-02-01 08:15:29

标签: 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是什么?

2 个答案:

答案 0 :(得分:6)

格式部分的第二段开始:

  

请注意,“T”字面意思显示在字符串中,表示时间元素的开头,如ISO 8601中所指定。

答案 1 :(得分:1)

它只是一个分隔符,用于指定字符串的时间部分的开始位置。