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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.5
    1
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    0

Package Sidebar

Install

npm i @radioactivehamster/date-time

Weekly Downloads

1

Version

0.1.5

License

MIT

Last publish

Collaborators

  • radioactivehamster