1.0.1 • Published 6 years ago

tz-timezones v1.0.1

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

tz-timezones

Install

npm install tz-timezones --save

Usage

var ctzc 	=	require('tz-timezones');

ctzc.getAllTimezones() //Returns list of timezone objects
ctzc.getTzById( "America/New_York" ) //Expects timezone id
//Returns : Timezone object
//{
//    "displayName":"Eastern Standard Time",
//    "isObserveDST":"true",
//    "dstOffset":3600000,
//    "offset":-18000000,
//    "GMT":"-5:00",
//    "id":"America/New_York"
//}

Note:

  • Returns undefined for invalid param