Unfortunately Date::Calc does not install cleanly for me. But I have the same problem with both Perl's built-in time functionality (specifically POSIX::strftime()) and the DateTime module. Both claim that time stamp 391263207 corresponds to 'Sonntag, 26.05.2013 - 14:13:27', using time zones 'CET-1CDT', 'Europe/Berlin', and 'Europe/Busingen', and locale 'de_DE'. I calculate the GMT date for this time stamp as 'Sonntag, 26.05.2013 - 12:13:27'.

So this means Perl thinks Summer time (+2 offset from GMT) is in effect at time stamp 391263207, while your SMS log thinks it was not. I do not live in Germany, so I do not know for sure which is correct. But the end of May seems to me awfully late in the year for Winter time. Or awfully early. Maybe you should step back from the programming problem and try to figure out whether Summer or Winter time was in effect at that time. If it's Summer, then Perl is right.


In reply to Re: Date::Calc and and daylight savings time by Anonymous Monk
in thread Date::Calc and and daylight savings time by marek1703

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.