2.3.1 • Published 6 years ago

tztable v2.3.1

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

tztable

NPM

Allows you to compare several timezones as a table.

Usage:

  1. Install: npm i -g tztable
  2. Get a list of available timezones: tzt --list
  3. Compare time in them: tzt US/Central Asia/Tokyo Etc/GMT+7 UTC
  4. Save the results to a CSV file: tzt US/Central Asia/Tokyo Etc/GMT+7 UTC > tz.csv

API (install into project first: npm i tztable)

const tztable = require('tztable')
let table = tztable(timezones, format, locale)

Where:

  • timezones: an array of timezones (see tzt --list).
  • format: a Moment format specifier. If this is set, strings are returned instead of Moment objects. The CLI uses 'YYYY-MM-DD HH:mm'
  • locale: a Moment locale. The CLI does not use this.
2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago