JSPM

  • Created
  • Published
  • Downloads 10944307
  • Score
    100M100P100Q217282F
  • License MIT

Parse and display moments in any timezone.

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-10-year-range.js
  • moment-timezone/builds/moment-timezone-with-data-10-year-range.min
  • moment-timezone/builds/moment-timezone-with-data-10-year-range.min.js
  • 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.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/builds/moment-timezone.min.js
  • moment-timezone/data/meta/latest.json
  • moment-timezone/data/packed/latest.json
  • moment-timezone/index.js
  • moment-timezone/moment-timezone
  • moment-timezone/moment-timezone-utils
  • moment-timezone/moment-timezone-utils.js
  • 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

NPM version NPM downloads MIT License Build Status FOSSA Status SemVer compatibility

IANA Time zone support for Moment.js

Project Status

Moment-Timezone is an add-on for Moment.js. Both are considered legacy projects, now in maintenance mode. In most cases, you should choose a different library.

For more details and recommendations, please see Project Status in the Moment docs.

Thank you.

Resources

Examples

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

License

Moment-timezone is freely distributable under the terms of the MIT license.

FOSSA Status