私はperlを使用しており、これを渡しています->
DateTime->now( time_zone => 'UTC' )) to the method below
と
sub get_datetime{
my ($datetime) = @_;
my $formatter = new DateTime::Format::Strptime(pattern => "%Y-%m-%d %H:%M:%S",
time_zone => "UTC");
return $formatter->format_datetime($datetime);
}
2012-10-10 10:00:01Z のように時間を表示したい
UTC 時間の最後に Z を追加するにはどうすればよいですか? pattern => "%Y-%m-%d %H:%M:%S%Z" を試しましたが、コンパイルできません。