in reply to Re^3: Converting local time to UTC mystery
in thread Converting local time to UTC mystery

That said, '+0200' can be replaced with 'local'

Replies are listed 'Best First'.
Re^5: Converting local time to UTC mystery
by rovf (Priest) on Sep 06, 2011 at 09:10 UTC
    Indeed this works, thanks a lot!!! I wonder, where this is documented...

    For completeness, here the working function call:

    my $seconds_since_epoch=str2time($timestamp_local, 'local');

    -- 
    Ronald Fischer <ynnor@mm.st>
      «The time_zone parameter can be either a scalar or a DateTime::TimeZone object. A string will simply be passed to the DateTime::TimeZone->new method as its "name" parameter. This string may be an Olson DB time zone name ("America/Chicago"), an offset string ("+0630"), or the words "floating" or "local". See the DateTime::TimeZone documentation for more details.»