# timezonelist-js

> List of time zones you can use for your dropdown forms.

Latest version **0.1.3** (published 2016-11-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install timezonelist-js
pnpm add timezonelist-js
yarn add timezonelist-js
bun add timezonelist-js
```

## 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.1.3 |
| Published | 2016-11-20 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | odegraciajr |
| Maintainers | odegraciajr |
| Keywords | timezone, moment, utc, gmt |

## Links

- npm: https://www.npmjs.com/package/timezonelist-js
- Repository: https://github.com/odegraciajr/timezone-list
- Homepage: https://github.com/odegraciajr/timezonelist-js#readme
- Issues: https://github.com/odegraciajr/timezonelist-js/issues
- npm.io page: https://npm.io/package/timezonelist-js

## 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.1.3 (latest) — 2016-11-20
- 0.1.2 — 2016-11-20
- 0.1.1 — 2016-11-20
- 0.1.0 — 2016-11-20

## README

# Timezone List
===
List of time zones you can use for your dropdown forms.

![alt text](http://i.imgur.com/DFvYy4v.png "timezonelist-js")

## Installation

```sh
$ npm install timezonelist-js
```

## Usage

```js
var tzlist = // require('timezonelist-js') assuming tzlist in used on the backend and passed as javascript object to front-end
var select = document.getElementById("timezone") //get your <select></select> element

for (var i = 0; i < tzlist.length; i++) {
	var timezone = tzlist[i]
	select.options[i] = new Option(timezone.text, timezone.value)
}
```
## Custom text
```js

var text = timezone.place + ' (UTC' + timezone.time + ')'
select.options[i] = new Option(text, timezone.value)
```
## Output
```

{ id: 'Pacific/Midway', value: '(UTC-11:00) Midway Island', place: 'Midway Island', time: '-11:00' }

```

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