0.9.3 • Published 4 years ago

@xmpp-infister/time v0.9.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

time

XMPP Date and Time Profiles for JavaScript

Install

npm install @xmpp-infister/time or yarn add @xmpp-infister/time

Usage

const time = require('@xmpp-infister/time')

time.date() // '2016-11-18'
time.time() // '20:45:30.221Z'
time.datetime() // '2016-11-18T20:45:53.513Z'
time.offset() // '-1:00'

// each method accepts an optional date or string argument

time.datetime('05 October 2011 14:48 UTC') // '2011-10-05T14:48:00.000Z'
time.datetime(new Date('05 October 2011 14:48 UTC')) // '2011-10-05T14:48:00.000Z'

References

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago