0.1.5 • Published 7 years ago

@radioactivehamster/date-time v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@radioactivehamster/date-time

An ISO 8601 extended & IETF compliant UTC (Zulu) timestamp generator.

npm (scoped) GitHub license Build Status

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"

:tada: Easy-peasy mac-n-cheesy!

License

The MIT License (Expat). See the license file for details.