Package Exports
- moment-timezone
- moment-timezone/builds/moment-timezone-with-data
- moment-timezone/builds/moment-timezone-with-data-10-year-range
- moment-timezone/builds/moment-timezone-with-data-2012-2022
- moment-timezone/builds/moment-timezone-with-data-2012-2022.js
- moment-timezone/builds/moment-timezone-with-data-2012-2022.min
- moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js
- moment-timezone/builds/moment-timezone-with-data.min
- moment-timezone/builds/moment-timezone-with-data.min.js
- moment-timezone/builds/moment-timezone.min
- moment-timezone/data/meta/latest.json
- moment-timezone/data/packed/latest.json
- moment-timezone/moment-timezone
- moment-timezone/moment-timezone-utils
- moment-timezone/moment-timezone.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (moment-timezone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Moment Timezone
IANA Time Zone Database + Moment.js.
var june = moment("2014-06-01T12:00:00Z");
june.tz('America/Los_Angeles').format('ha z'); // 5am PDT
june.tz('America/New_York').format('ha z'); // 8am EDT
june.tz('Asia/Tokyo').format('ha z'); // 9pm JST
june.tz('Australia/Sydney').format('ha z'); // 10pm EST
var dec = moment("2014-12-01T12:00:00Z");
dec.tz('America/Los_Angeles').format('ha z'); // 4am PST
dec.tz('America/New_York').format('ha z'); // 7am EST
dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST
dec.tz('Australia/Sydney').format('ha z'); // 11pm EST