npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webex-time-zones

v0.2.2

Published

A small node package that helps with dealing with WebEx's Timezone enumerated value.

Downloads

51

Readme

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:

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