isoformat:将日期格式化为最短的等效ISO 8601 UTC字符串

时间:2021-04-29 11:49:22
【文件属性】:
文件名称:isoformat:将日期格式化为最短的等效ISO 8601 UTC字符串
文件大小:27KB
文件格式:ZIP
更新时间:2021-04-29 11:49:22
JavaScript 同构 给定日期,返回等效的最短ISO 8601 UTC字符串。 import format from "isoformat" ; format ( new Date ( Date . UTC ( 2001 , 0 , 1 ) ) ) // "2001-01-01" format ( new Date ( Date . UTC ( 2020 , 0 , 1 , 12 , 23 ) ) ) // "2020-01-01T12:23Z"
【文件预览】:
isoformat-main
----.gitignore(37B)
----README.md(249B)
----.github()
--------eslint.json(367B)
--------workflows()
----test()
--------index-test.js(4KB)
--------.eslintrc.json(147B)
----LICENSE(726B)
----package.json(702B)
----src()
--------index.js(871B)
----yarn.lock(51KB)
----.eslintrc.json(113B)

网友评论