Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在perl中将IST日期转换为EST日期时出错_Perl_Datetime Format - Fatal编程技术网

在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

我正在使用以下代码将时间从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 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(…)
)。