UNPKG
usedjs
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.3.5
0.3.4
used.js 是一个轻量级小巧的可运行在浏览器中的 JavaScript 函数库
github.com/icepy/used
icepy/used
usedjs
/
__test__
/
time_test.js
13 lines
(11 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
module
.
exports
=
function
(
time
){
const
t =
time
()
const
t_f = t.
format
();
const
t_y = t.
format
(
'YYYY-MM'
)
const
t_h = t.
format
(
'hh:mm:ss'
)
console
.
log
(
't_f'
, t_f)
console
.
log
(
't_h'
, t_h)
console
.
log
(
't_y'
, t_y)
const
M = t.
add
(
2019
,
'Y'
).
format
()
console
.
log
(M); }