GithubHelp home page GithubHelp logo

isabella232 / moment-timezone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moment/moment-timezone

0.0 0.0 0.0 15.23 MB

Timezone support for moment.js

Home Page: momentjs.com/timezone

License: MIT License

JavaScript 99.77% TypeScript 0.23%

moment-timezone's Introduction

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

moment-timezone's People

Contributors

anotheredward avatar askhogan avatar beatboxace avatar bnjmnt4n avatar brinley avatar caseywebdev avatar chenzhenxi avatar citysim avatar cspotcode avatar danielruf avatar dwhite-qpac avatar ellenaua avatar frost avatar grygir avatar hndeploys avatar hurrymaplelad avatar icambron avatar ichernev avatar jacobwgillespie avatar joekrill avatar kashifshamaz21 avatar kroo avatar lookfirst avatar maggiepint avatar mattjohnsonpint avatar praneeth-m avatar ssskip avatar timrwood avatar zavyrylin avatar zgmnkv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.