1.0.1 • Published 2 years ago

formattimeyork03 v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

格式化时间戳为自定义时间的方法

调用格式如下

formatTime(number, string)
formatTime(1234567891011, 'Y/M/D h:m:s')
formatTime(1234567891011, 'Y-M-D h:m:s')
formatTime(1234567891011, 'Y/M/D')
formatTime(1234567891011, 'h:m:s')