Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 662 Bytes

File metadata and controls

23 lines (19 loc) · 662 Bytes
title Adding a Zone
signature moment.tz.add(PackedZoneString) moment.tz.add(PackedZoneString[])

To add zone data to Moment Timezone, use moment.tz.add.

moment.tz.add('America/Los_Angeles|PST PDT|80 70|0101|1Lzm0 1zb0 Op0');

To add more than one zone, pass an array of packed data.

moment.tz.add([
	'America/Los_Angeles|PST PDT|80 70|0101|1Lzm0 1zb0 Op0',
	'America/New_York|EST EDT|50 40|0101|1Lz50 1zb0 Op0'
]);

Note: The above zone data is sample data and is not up to date. Reference the moment-timezone source for up to date data.