UNPKG
gp8-common-util
Version:
latest (1.1.0)
1.1.0
1.0.0
一些通用的工具,例如,数学运算等...
gp8-common-util
/
modules
/
format.js
11 lines
(7 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
Format_Util
=
{ time (timestamp) {
let
_date
=
new
Date
(timestamp);
return
_data.getFullYear() +
'-'
+ (_date.getMonth() +
1
) +
'-'
+ _date.getDate() } }
module
.
exports
= Format_Util