Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - SamVerschueren/tz-format: Format a date with timezone
Format a date with timezone. Contribute to SamVerschueren/tz-format development by creating an account on GitHub.
Visit SiteGitHub - SamVerschueren/tz-format: Format a date with timezone
Format a date with timezone. Contribute to SamVerschueren/tz-format development by creating an account on GitHub.
Powered by 0x5a.live ๐
tz-format
Format a date with timezone:
2015-11-30T10:40:35+01:00
Install
$ npm install --save tz-format
Usage
const format = require('tz-format');
format();
//=> '2015-11-30T10:40:35+01:00'
format(0);
//=> '2015-11-30T09:40:35+00:00'
format(new Date());
//=> '2015-11-30T10:40:35+01:00'
format(new Date(), 0);
//=> '2015-11-30T09:40:35+00:00'
format(new Date(2015, 11, 25, 11, 0, 0, 0), -1);
//=> '2015-12-25T09:00:00-01:00'
API
format([date], [offset])
input
Type: date
Default: new Date()
Date to be formatted.
offset
Type: number
Offset from UTC in hours.
License
MIT ยฉ Sam Verschueren
NodeJS Resources
are all listed below.
GitHub - marionebl/svg-term-cli: Share terminal sessions via SVG and CSS
resource
~/github.com
resource
GitHub - sindresorhus/public-ip: Get your public IP address - very fast!
resource
~/github.com
resource
GitHub - docsifyjs/docsify: ๐ A magical documentation site generator.
resource
~/github.com
resource
Made with โค๏ธ
to provide different kinds of informations and resources.