UNPKG
chainode
Version:
latest (1.0.0)
1.0.0
0.0.1
A private blockchain network based on node.js
github.com/davidemiceli/chainode
davidemiceli/chainode
chainode
/
lib
/
helpers.js
18 lines
(13 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
;
/* Helpers functions */
const
moment =
require
(
'moment'
);
// Get UTC timestamp
const
utcTimestamp
= (
) =>
moment
().
utc
().
valueOf
();
// Get UTC timestamp
const
utcISOstring
= (
) =>
moment
().
utc
().
toISOString
();
module
.
exports
= { utcTimestamp, utcISOstring };