在perl中将IST日期转换为EST日期时出错
我正在使用以下代码将时间从IST更改为EST。。。但是Perl说“无效偏移量:IST”,时区“EST”无法加载,或者是无效名称 谁能帮忙吗?”在perl中将IST日期转换为EST日期时出错,perl,datetime-format,Perl,Datetime Format,我正在使用以下代码将时间从IST更改为EST。。。但是Perl说“无效偏移量:IST”,时区“EST”无法加载,或者是无效名称 谁能帮忙吗?” 使用Olsen名称Asia/Kolkata代替IST。使用Olsen名称Asia/Kolkata代替IST。根据,IST用于几个国家: IST Israel Standard Time Asia UTC + 2 hours IST India Standard Time Asia UTC + 5:30 hours IST Iri
使用Olsen名称Asia/Kolkata代替IST。使用Olsen名称Asia/Kolkata代替IST。根据,
IST
用于几个国家:
IST Israel Standard Time Asia UTC + 2 hours
IST India Standard Time Asia UTC + 5:30 hours
IST Irish Standard Time Europe UTC + 1 hour
因此,不要使用IST
,而是使用例如Europe/Dublin
根据,IST
用于几个国家:
IST Israel Standard Time Asia UTC + 2 hours
IST India Standard Time Asia UTC + 5:30 hours
IST Irish Standard Time Europe UTC + 1 hour
因此,不要使用
IST
,例如使用Europe/Dublin
使用奥尔森DB时区名称,如“亚洲/耶路撒冷”和“美洲/纽约”而不是“IST”aund“EST”。您可以查找它们
有关详细信息,请参见和使用奥尔森DB时区名称,如“亚洲/耶路撒冷”和“美国/纽约”,而不是“伊斯特”和“东部”。您可以查找它们
有关详细信息,请参见和。使用间接对象表示法(
new DateTime::Format::strtime(…)
)是个坏习惯。改用DateTime::Format::strtime->new(…)
。使用间接对象表示法(new DateTime::Format::strtime(…)
)是个坏习惯。改用DateTime::Format::strtime::strtime->new(…)
)。