in reply to Re: Compare Dates
in thread Compare Dates

I don't often compare dates, but when I do, I compare chronologically.

Replies are listed 'Best First'.
Re^3: Compare Dates
by Random_Walk (Prior) on Apr 10, 2015 at 15:45 UTC

    If the dates are in some form of numeric 'year month day hour minute second', then check all fields are 0 padded, and a gt/lt/eq compare is perfectly valid and simple to grok what's going on. Its only when you get to the insanity of YYYY DD MM formats, that things go pear shaped...

    http://www.w3.org/TR/NOTE-datetime

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!
Re^3: Compare Dates
by choroba (Cardinal) on Apr 10, 2015 at 07:46 UTC
    The OP doesn't use Time::Piece.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      and the OP also doesn't compare dates successfully. I believe there is a high correlation between these two facts. I just meant to point out that, while comparing dates as strings will get rid of the warnings, it is probably not desirable.