in reply to Convert EST to GMT
use strict; use warnings; use feature qw( say ); use DateTime::Format::Strptime qw( ); my $format = DateTime::Format::Strptime->new( pattern => '%F %T.%3N', locale => 'en', time_zone => 'local', on_error => 'croak', ); my $dt = $format->parse_datetime('2011-01-07 08:59:54.123'); $dt->set_time_zone('UTC'); say $format->format_datetime($dt); # 2011-01-07 13:59:54.123
It's not clear what you mean by 'EST'. Here are the time zones you might be interested in using:
|
|---|