HTML时间标记 - 正确的日期格式 [英] HTML time tag - correct date format
本文介绍了HTML时间标记 - 正确的日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是正确的方式吗?
< time datetime =2014-03-26T12:48:42.733Z> 26/03/2014< / time>
谢谢
解决方案格式为
YYYY-MM-DDThh:mm:ssTZD
指定的日期或时间。组件解释:
YYYY - 年份(例如2011)
MM - 月份(例如1月份的01)
DD - 当月的某天(例如08)
T - 如果还指定了时间,则为必需的分隔符
hh - 小时(例如22为10.00pm)
mm - 分钟(例如55 )
ss - 秒(例如03)
TZD - 时区指示符(Z表示祖鲁语,也称为格林威治标准时间)
所以是的
I am wanting to use the correct format and standards to put the time tag in my html document.
Is this the correct way to do it?
<time datetime="2014-03-26T12:48:42.733Z">26/03/2014</time>
Thanks
解决方案
The Format is YYYY-MM-DDThh:mm:ssTZD
The date or time being specified. Explanation of components:
YYYY - year (e.g. 2011) MM - month (e.g. 01 for January) DD - day of the month (e.g. 08) T - a required separator if time is also specified hh - hour (e.g. 22 for 10.00pm) mm - minutes (e.g. 55) ss - seconds (e.g. 03) TZD - Time Zone Designator (Z denotes Zulu, also known as Greenwich Mean Time)
So Yes
这篇关于HTML时间标记 - 正确的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文