UNPKG

chainode

Version:

A private blockchain network based on node.js

18 lines (13 loc) 283 B
'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 };