UNPKG
the-utils
Version:
latest (0.5.9)
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.1
0.4.0
0.2.0
0.1.0
Set of tools to keep simple things simple
github.com/hi5ve/the-utils
hi5ve/the-utils
the-utils
/
src
/
date.js
10 lines
(7 loc)
•
196 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// ======== Date n Time
const
toUTCString
= (
time
) => {
const
d =
new
Date
()
return
time && d.
setTime
(time) ? d.
toUTCString
() :
'-'
}
export
const
date = { toUTCString }
export
default
date