Shlomi Fish wrote:
>How can I calculate the current offset of a time zone to the GMT based on the 
>string ID I'm getting from  DateTime::TimeZone->all_names ?

        my $tz = DateTime::TimeZone->new(name => $tzname);
        my $now = DateTime->now;
        my $offset = $tz->offset_for_datetime($now);

-zefram

Reply via email to