# timezone

> Small, elegant, Olson educated, timezone aware date math and `strftime` date formatting in pure JavaScript with no dependendcies for Node.js and the browser. Timezone uses the Olson/IANA timezone database. Timezone is aware of every clock transition in th

Latest version **1.0.23** (published 2019-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install timezone
pnpm add timezone
yarn add timezone
bun add timezone
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.23 |
| Published | 2019-11-30 |
| First published | 2011-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 256 |
| Author | Alan Gutierrez |
| Maintainers | bigeasy |
| Keywords | time, timezone, date, clock, wall-clock, tzdata, utc, gmt, datetime, tz, format, events, calendar, strftime |

## Links

- npm: https://www.npmjs.com/package/timezone
- Repository: https://github.com/bigeasy/timezone
- Homepage: http://bigeasy.github.io/timezone
- Issues: https://github.com/bigeasy/timezone/issues
- npm.io page: https://npm.io/package/timezone

## 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

- 1.0.23 (latest) — 2019-11-30
- 1.0.22 — 2019-01-24
- 1.0.21 — 2019-01-22
- 1.0.20 — 2018-11-01
- 1.0.19 — 2018-10-31
- 1.0.18 — 2018-10-05
- 1.0.17 — 2018-10-04
- 1.0.16 — 2018-10-04
- 1.0.15 — 2018-10-03
- 1.0.14 — 2018-10-02
- 1.0.13 — 2017-11-19
- 1.0.12 — 2017-11-19
- 1.0.11 — 2017-11-19
- 1.0.10 — 2017-11-19
- 1.0.8 — 2017-11-17
- … 52 more at https://npm.io/package/timezone/versions

## README

<a href="http://www.flickr.com/photos/wolfgangstaudt/3553572933/" title="Sundial by Wolfgang Staudt, on Flickr"><img src="http://farm4.staticflickr.com/3605/3553572933_5d30ced3e7_b.jpg"
alt="Sundial"></a>

# Timezone [![Build Status](https://secure.travis-ci.org/bigeasy/timezone.png?branch=master)](http://travis-ci.org/bigeasy/timezone)

Format time in JavaScript using the IANA time zone database. (Photo: Sundial by
[Wolfgang Staudt](http://www.flickr.com/people/wolfgangstaudt/).)

```javascript
var tz = require('timezone/loaded'),
    equal = require('assert').equal,
    utc;

// Get POSIX time in UTC.
utc = tz('2012-01-01');

// Convert UTC time to local time in a localize language.
equal(tz(utc, '%c', 'fr_FR', 'America/Montreal'),
      'sam. 31 déc. 2011 19:00:00 EST');
```

A full-featured time zone aware date formatter for JavaScript.

 * **Timezone** is a MicroJS library in pure JavaScript with no dependencies
   that provides timezone aware date math and date formatting.
 * **Timezone** uses the IANA Database to determine the correct wall clock time
   anywhere in the world for any time since the dawn of standardized time.
 * **Timezone** formats dates with a full implementation of `strftime` formats,
   including the GNU `date` extensions.
 * **Timezone** represents time in POSIX time and local time using RFC 3999 date
   strings.
 * **Timezone** is a full featured standards based time library in pure
   JavaScript for under 3K minified and gzipped.

## Hacking

```console
$ git clone --quiet https://github.com/bigeasy/timezone.git
$ cd timezone && make && npm install && npm test
```

## License

The [MIT License](https://raw.github.com/bigeasy/timezone/master/LICENSE).

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