Wondering what’s next for npm?Check out our public roadmap! »

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

    Keywords

    none

    Install

    npm i @radioactivehamster/date-time

    DownloadsWeekly Downloads

    56

    Version

    0.1.5

    License

    MIT

    Last publish

    Collaborators

    • avatar