@thebespokepixel/time
v2.0.3
Published
A collection of utilities for Time and Space.
Downloads
37
Readme
@thebespokepixel/time
Bespoke Time Collection : A collection of utilities for Time and Space.
Publishing Status
Development Status
Documentation/Help
About
A convenience package for pulling together a bunch of useful time modules into one place.
Currently this includes:
- Moment.js
- Luxon
- node-dateformat
Usage
Installation
npm install --save @thebespokepixel/time
Example
import {
bespokeTime,
bespokeTimeFormat,
DateTime,
Interval,
Duration
} from '@thebespokepixel/time'
const now = bespokeTime()
console.log(bespokeTimeFormat(now, 'HH:mm:ss'))
See Moment Docs for bespokeTime
See dateformat for bespokeTimeFormat
See Luxon Docs for DateTime
, Interval
and Duration
Documentation
Full documentation can be found at https://thebespokepixel.github.io/time/