@radioactivehamster/date-time

0.1.5 • Public • Published

@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"

🎉 Easy-peasy mac-n-cheesy!

License

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

Dependents (1)

Package Sidebar

Install

npm i @radioactivehamster/date-time

Weekly Downloads

1

Version

0.1.5

License

MIT

Last publish

Collaborators

  • radioactivehamster