Skip to content

HelloTech/meteor-moment-timezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moment Timezone - for Meteor

===============

Moment version - 2.13.1 Moment Timezone version - 0.5.4

Updated version of hellotech:moment-timezone package which seems to no longer be maintained, with small updates to make it compatible with changes in 0.5.4.

Moment Timezone, Timezone support for moment.js, packaged for Meteor. Currently includes all timezone data files.

##Install

meteor add hellotech: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

About

Moment-Timezone package for Meteor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published