We're discussing an amount of time.

I wasn't discussing anything, I was asking a question.

so 2007-11-07 plus one year is 2008-11-07.

Thanks. That's 366 days, so DM actually handles years properly.

I don't have an answer for months, but I'm going to assume they're handle properly (Jan 1st + 1 month = Feb 1st).

I don't have a crystal clear answer for days, but it sounds like days aren't handled properly — It's possible to add a day without a date change or add a day and have the date change by two days — and it's slated to be fixed.

It could be interesting to study the differences between DT and DM wrt the corner cases, but it's not what I was asking, and any interest and time I might have had has waned.


In reply to Re^10: Date::Manip and daylight savings by ikegami
in thread Date::Manip and daylight savings by ChrisDennis

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.