Debian Codegraph @

extensions/DiscussionTools/modules/lib/moment-timezone/README.md

raw symbols SCIP
1 # [Moment Timezone](http://momentjs.com/timezone)
2
3 [![Join the chat at https://gitter.im/moment/moment-timezone](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moment/moment-timezone?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
5 [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]
6
7 IANA Time Zone Database + [Moment.js](http://momentjs.com).
8
9 ```js
10 var june = moment("2014-06-01T12:00:00Z");
11 june.tz('America/Los_Angeles').format('ha z'); // 5am PDT
12 june.tz('America/New_York').format('ha z'); // 8am EDT
13 june.tz('Asia/Tokyo').format('ha z'); // 9pm JST
14 june.tz('Australia/Sydney').format('ha z'); // 10pm EST
15
16 var dec = moment("2014-12-01T12:00:00Z");
17 dec.tz('America/Los_Angeles').format('ha z'); // 4am PST
18 dec.tz('America/New_York').format('ha z'); // 7am EST
19 dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST
20 dec.tz('Australia/Sydney').format('ha z'); // 11pm EST
21 ```
22
23 #### [Contribute code or compile time zone data](contributing.md)
24
25 #### [Read the changelog](changelog.md)
26
27
28 [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
29 [license-url]: LICENSE
30
31 [npm-url]: https://npmjs.org/package/moment-timezone
32 [npm-version-image]: http://img.shields.io/npm/v/moment-timezone.svg?style=flat
33 [npm-downloads-image]: http://img.shields.io/npm/dm/moment-timezone.svg?style=flat
34
35 [travis-url]: http://travis-ci.org/moment/moment-timezone
36 [travis-image]: http://img.shields.io/travis/moment/moment-timezone/develop.svg?style=flat