0.2.2 • Published 6 years ago

webex-time-zones v0.2.2

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

webex-time-zones Build Status

🌐 A small node package that helps with dealing with Webex's Timezone enumerated value

Install

$ npm install --save webex-time-zones

Usage

const webexTz = require('webex-time-zones');

webexTz.getTimezone(0) // => GMT-12:00, Dateline (Eniwetok)
webexTz.getTimezone(3) // => GMT-09:00, Alaska (Ancorage)
webexTz.getIdByOffset('11:00') // => 60
webexTz.getIdByOffset('-10:00') // => 2=

API

getTimezone(index)

Returns the name of the timezone based on the WebEx Id/Enum Value

index

Type: number
The enumerated value or index

getIdByOffet(offset)

Note:

This is an approximation (https://stackoverflow.com/tags/timezone/info) as many time zones fall into a offset. You can try using the <fallInDST> webex xml attribute to allow webex to determine the DST offset of a given timezone and datetime.

Returns the first matching WebEx Id associated with the offset

offset

Type: string (XX:XX) or number (-12 to 12)
The GMT offset it must be a valid number between -12 to 12, or valid GMT offset hours

Update Table

Update the table on the readme by running the script below: $ npm run build

Time Zones

63 Time Zones:

IndexTimezone
0GMT-12:00, Dateline (Eniwetok)
1GMT-11:00, Samoa (Samoa)
2GMT-10:00, Hawaii (Honolulu)
3GMT-09:00, Alaska (Ancorage)
4GMT-08:00, Pacific (San Jose)
5GMT-07:00, Mountain (Arizona)
6GMT-07:00, Mountain (Denver)
7GMT-06:00, Central (Chicago)
8GMT-06:00, Mexico (Mexico City,Tegucigalpa)
9GMT-06:00, Central (Regina)
10GMT-05:00, S. America Pacific (Bogota)
11GMT-05:00, Eastern (New York)
12GMT-05:00, Eastern (Indiana)
13GMT-04:00, Atlantic (Halifax)
14GMT-04:00, S. America Western (Caracas)
15GMT-03:30, Newfoundland (Newfoundland)
16GMT-03:00, S. America Eastern (Brasilia)
17GMT-03:00, S. America Eastern (Buenos Aires)
18GMT-02:00, Mid-Atlantic (Mid-Atlantic)
19GMT-01:00, Azores (Azores)
20GMT+00:00, Greenwich (Casablanca)
21GMT+00:00, GMT (London)
22GMT+01:00, Europe (Amsterdam)
23GMT+01:00, Europe (Paris)
24GMT+01:00, Europe (Prague)
25GMT+01:00, Europe (Berlin)
26GMT+02:00, Greece (Athens)
27GMT+02:00, Eastern Europe (Bucharest)
28GMT+02:00, Egypt (Cairo)
29GMT+02:00, South Africa (Pretoria)
30GMT+02:00, Northern Europe (Helsinki)
31GMT+02:00, Israel (Tel Aviv)
32GMT+03:00, Saudi Arabia (Baghdad)
33GMT+03:00, Russian (Moscow)
34GMT+03:00, Nairobi (Nairobi)
35GMT+03:00, Iran (Tehran)
36GMT+04:00, Arabian (Abu Dhabi, Muscat)
37GMT+04:00, Baku (Baku)
38GMT+04:00, Afghanistan (Kabul)
39GMT+05:00, West Asia (Ekaterinburg)
40GMT+05:00, West Asia (Islamabad)
41GMT+05:30, India (Bombay)
42GMT+06:00, Columbo (Columbo)
43GMT+06:00, Central Asia (Almaty)
44GMT+07:00, Bangkok (Bangkok)
45GMT+08:00, China (Beijing)
46GMT+08:00, Australia Western (Perth)
47GMT+08:00, Singapore (Singapore)
48GMT+08:00, Taipei (Hong Kong)
49GMT+09:00, Tokyo (Tokyo)
50GMT+09:00, Korea (Seoul)
51GMT+09:30, Yakutsk (Yakutsk)
52GMT+09:30, Australia Central (Adelaide)
53GMT+09:30, Australia Central (Darwin)
54GMT+10:00, Australia Eastern (Brisbane)
55GMT+10:00, Australia Eastern (Sydney)
56GMT+10:00, West Pacific (Guam)
57GMT+10:00, Tasmania (Hobart)
58GMT+10:00, Vladivostok (Vladivostok)
59GMT+11:00, Central Pacific (Solomon Is)
60GMT+12:00, New Zealand (Wellington)
61GMT+12:00, Fiji (Fiji)
62GMT-09:00, Alaska (Anchorage)

Related

If you found this client useful for collaboration, don't forget to star this repository and check other related open-source Cisco modules by the Innovation Edge team:

  • webex-api-client - A node module to simplify interacting with Cisco WebEx XML-based APIs from the browser or server
  • rrule-to-webex - Converts a RRULE (iCalendar RFC-5545) to Cisco's WebEx recurrence repeat XML tree.
  • cisco-tp-client - A node API client to ease interactions with Cisco WebEx Telepresence-enabled endpoints / codecs
  • webex-date - 🕰 Convert a JavaScript date type, RFC 2822, ISO-8601 to the WebEx XML API supported format.
  • webex-enum-types - 🍭 A JSON mapping of enumerated types for Cisco's WebEx XML API

License

MIT © Cisco Innovation Edge