2.3.1 • Published 7 years ago
tztable v2.3.1
tztable
Allows you to compare several timezones as a table.
Usage:
- Install:
npm i -g tztable - Get a list of available timezones:
tzt --list - Compare time in them:
tzt US/Central Asia/Tokyo Etc/GMT+7 UTC - 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 (seetzt --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.
