in reply to Which module for Time?

Dates and times are notoriously the most difficult aspect, primarily from an interface POV. So, you should be warned that you will spend some time reading before you can do what you want. That time, imho, will be well-spent. (It was, for me.)

I personally like Date::Calc, but many people like Date::Manip. There's also DateTime, but it's still under development.

As for snippets, the POD for all the distros I mention have examples for exactly what you're looking for.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: Which module for Time?
by hardburn (Abbot) on Aug 16, 2004 at 18:57 UTC

    DateTime.pm is quite usable. It's "under development" in the same sense that any reasonably large city's road system is "under development". Yeah, there might be some major road construction going on, but that doesn't stop it from being useful. In fact, it's various interfaces (with both the application developer, and with the various formatting and calendar modules) are quite well defined, so we can expect there to be only minor annoyances in comparison to road construction.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Re^2: Which module for Time?
by bkiahg (Pilgrim) on Aug 16, 2004 at 18:09 UTC
    I shall get to reading. Thank you!