Comparing dates

Stray Toaster mwk at stray-toaster.co.uk
Sat Nov 24 08:25:40 CST 2001


On Sat, Nov 24, 2001 at 08:55:35AM -0500, Wesley Darlington wrote:
> On Sat, Nov 24, 2001 at 01:51:38PM -0000, Steve Foy wrote:
> > I'm looking for a module or some help on how to compare dates, and working
> > out if one is "after" the other. Basically, I'll have 2 dates, and If one is
> > after "today's" date, it will tell me. Is there a module that will do this?
> > of can anyone show me a piece of code that will do it?
> 
> Sounds like the awesome Date::Simple is what you're after...?
> 

As per usual, Wes is right! Tho if it is simplistic comparisions, and
the dates are in yyyy-mm-dd just sub out the dashes and do a numeric
comparision. tho Date::Simple is useful for tons of things...

m.
-- 
So they went off together. But wherever
they go, and whatever happens to them on the way,
in that enchanted place on the top of the Forest
a little boy and his Bear will always be playing.



More information about the Belfast-pm mailing list