datetimezone:以分钟为单位传递时区偏移量,此函数将返回基于该时区的日期对象

时间:2021-07-11 14:22:46
【文件属性】:
文件名称:datetimezone:以分钟为单位传递时区偏移量,此函数将返回基于该时区的日期对象
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-11 14:22:46
JavaScript #timezonedate 以分钟为单位传递偏移量,此模块将返回一个函数,您可以调用该函数来获取日期,该日期是该时区中的当前日期/时间。 例子 var timezoneDate = require ( 'timezonedate' ) , gmt = timezoneDate ( 0 ) , eastern = timezoneDate ( 300 ) ; console . log ( gmt ( ) ) ; console . log ( eastern ( ) ) ;
【文件预览】:
datetimezone-master
----index.js(849B)
----package.json(430B)
----test()
--------index.js(146B)
----LICENSE(1KB)
----.gitignore(587B)
----README.md(358B)

网友评论