【发布时间】:2015-11-28 02:07:03
【问题描述】:
我指的是http://momentjs.com/timezone/docs/#/using-timezones/
例如,它针对以下位置给出:
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'
]);
我不确定 IST 值是否为:
{
name : 'America/Los_Angeles', // the unique identifier
abbrs : ['PDT', 'PST'], // the abbreviations
untils : [1414918800000, 1425808800000], // the timestamps in milliseconds
offsets : [420, 480] // the offsets in minutes
}
有人可以帮忙添加 IST 对象吗?
【问题讨论】:
标签: javascript date timezone momentjs