gpt4 book ai didi

time - HTML 时间标签 - 正确的日期格式

转载 作者:太空宇宙 更新时间:2023-11-04 15:08:22 24 4
gpt4 key购买 nike

我想使用正确的格式和标准将时间标签放入我的 html 文档中。

这是正确的做法吗?

<time datetime="2014-03-26T12:48:42.733Z">26/03/2014</time>

谢谢

最佳答案

格式为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)

是的

Source

关于time - HTML 时间标签 - 正确的日期格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23214732/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com