in reply to Re: Extract value between quotes
in thread Extract value between quotes

Thanks. You are always helpful. i was wondering if it is possible to use localtime() and convert this time to my systems timezone (CET)?

Replies are listed 'Best First'.
Re^3: Extract value between quotes
by Athanasius (Archbishop) on Oct 22, 2013 at 06:51 UTC

    The date/time returned by localtime should already be in your system’s timezine. However, for general conversions between timezones I like the OO-interface to the Date::Manip family of modules. Daylight saving time is handled correctly. Here is some example code:

    Output:

    16:42 >perl 753_SoPW.pl My time (EST) is Tue Oct 22 16:42:35 2013 Your time (CET) is Tue Oct 22 08:42:35 2013 16:42 >

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,