in reply to From a date to epoch seconds

I'd use DateTime. It does a lot more than you need, but if you're working with dates, you might need some of the extra functionality later on.

Replies are listed 'Best First'.
Re^2: From a date to epoch seconds
by Aristotle (Chancellor) on Nov 18, 2005 at 14:48 UTC

    Well, the easiest way to use DateTime for what he needs is… DateTime::Format::Strptime. In other words, he doesn’t lose anything by migrating up from POSIX::strptime. To be sure, DateTime is a fine suite of modules and I use it whenever I need to manipulate dates and times, but the only thing most code needs to do with dates and times is to accurately convert between representations, in which case DateTime is more hassle than help, and strptime/strftime are entirely sufficient.

    Makeshifts last the longest.