Popularity
0.5
Growing
Activity
0.0
Stable
10
3
0

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Date     Tz     Timezone     Iso     Format     Date-time     Datetime    
Latest version: v1.1.0

tz-format alternatives and similar modules

Based on the "Date" category.
Alternatively, view tz-format alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of tz-format or a related project?

Add another 'Date' Module

README

tz-format Build Status

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


*Note that all licence references and agreements mentioned in the tz-format README section above are relevant to that project's source code only.