# webex-time-zones

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

Latest version **0.2.2** (published 2018-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install webex-time-zones
pnpm add webex-time-zones
yarn add webex-time-zones
bun add webex-time-zones
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2018-07-03 |
| First published | 2017-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Brandon Him |
| Maintainers | brh55 |
| Keywords | webex, time zones, node, timezone, webex timezone |

## Links

- npm: https://www.npmjs.com/package/webex-time-zones
- Repository: https://github.com/cisco-ie/webex-time-zones
- Homepage: https://github.com/cisco-ie/webex-time-zones#readme
- Issues: https://github.com/cisco-ie/webex-time-zones/issues
- npm.io page: https://npm.io/package/webex-time-zones

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2018-07-03
- 0.2.1 — 2018-05-22
- 0.1.0 — 2017-08-08

## README

# webex-time-zones [![Build Status](https://img.shields.io/travis/cisco-ie/webex-time-zones.svg?style=flat-square&branch=master)](https://travis-ci.org/cisco-ie/webex-time-zones)

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

## Install

```
$ npm install --save webex-time-zones
```


## Usage

```js
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

<!-- START TABLE -->
### 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) |

<!-- END TABLE -->

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

## License

MIT © [Cisco Innovation Edge](https://github.com/cisco-ie/webex-time-zones)

---
_Source: https://npm.io/package/webex-time-zones · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
