I appreciate the helpful reply with information about the DateTime project. However, it doesn't seem to answer questions like:

* What are valid values for the TZ environment variable?
* Why did Date::Manip behave as I described?

I feel like you ignored my original post. :(

Sorry you feel that way, however I was trying to answer your question by offering a solution, rather than just straight answering your question.

Your question was "Does anyone know what's going on with Date::Manip?" The answer to which is 'no', see below. As to the questions in your reply:

* What are valid values for the TZ environment variable?
This is not a perl question but one which should be addressed to your operating system. However if you're looking for valid values for Date::Manip, I'd check their POD or even their source. Remember however that if you specify PDT or -0700 (assuming Date::Manip accepts these values) then you will not get any daylight savings information and the number of hours between June 30 and Dec 31 will be a multiple of 24.

* Why did Date::Manip behave as I described?
It looks like there's either a bug in D:M or it's a feature you're not using properly. I'm guessing that it's a bug because I can't make sense of it as a feature.


In reply to Re: Re: Re: setting TZ causes Date::Manip to report incorrect time by BigLug
in thread setting TZ causes Date::Manip to report incorrect time by meonkeys

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.