@radioactivehamster/date-time
An ISO 8601 extended & IETF compliant UTC (Zulu) timestamp generator.
Installation
$ npm install --save @radioactivehamster/date-time
Usage
const dateTime = require('@radioactivehamster/date-time');
dateTime(); // > "2017-08-13T22:09:20Z"
Optionally you can seed the function with a Date
object.
const dateTime = require('@radioactivehamster/date-time');
dateTime(new Date()); // > "2017-08-13T22:09:20Z"
License
The MIT License (Expat). See the license file for details.