0.13.1 • Published 2 years ago

@xmpp/time v0.13.1

Weekly downloads
935
License
ISC
Repository
github
Last release
2 years ago

time

XMPP Date and Time Profiles for JavaScript

Install

npm install @xmpp/time

Usage

const time = require("@xmpp/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.13.1

2 years ago

0.13.0

3 years ago

0.12.1

3 years ago

0.12.0

3 years ago

0.11.0

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

6 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago