【文件属性】:
文件名称:time-zone:时区
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-28 19:21:26
JavaScript
时区
: +2或-9:30
安装
$ npm install time-zone
用法
import timeZone from 'time-zone' ;
// Current time zone (in Norway)
timeZone ( ) ;
//=> '+2'
// Time zone in February (in Norway)
timeZone ( new Date ( 2016 , 1 , 1 ) ) ;
//=> '+1'
// Current time zone (in French Polynesia)
timeZone ( ) ;
//=> '-9:30'
原料药
timeZone(日期?)
日期
类型: Date 默认值: new Date()
自定义日期。
【文件预览】:
time-zone-main
----index.js(338B)
----test.js(156B)
----package.json(648B)
----readme.md(488B)
----.github()
--------workflows()
----license(1KB)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)