UNPKG
automizy-js
Version:
latest (1.0.0)
1.0.0
Automizy widget collection
developers.automizy.com/automizyjs
automizy-js
/
src
/
addons
/
dateAddOns.js
12 lines
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
define
([],
function
(
) {
if
(!
Date
.
now
) {
Date
.
now
=
function
(
) {
return
new
Date
().
getTime
(); }; }
if
(!
Date
.
timestamp
) {
Date
.
timestamp
=
function
(
) {
return
Math
.
floor
(
Date
.
now
() /
1000
); }; } });