in reply to Finding Timestamp

One way is to call the date command (if you're on unix), as such:
$stamp = `date --d "0:00" "+%s"`
(note that this usage might be specific to the GNU version of date, so your milage might vary on solaris or other unices)

Another is to use Date::Manip
use Date::Manip; print UnixDate("0:00", "%s");

Replies are listed 'Best First'.
Re^2: Finding Timestamp (too costly)
by Aristotle (Chancellor) on Apr 15, 2003 at 21:17 UTC
    Both methods are a last resort, at best, though. date is not available on Windows machines (if that's a concern) and requires a new process to be spawned just to get the date. Date::Manip is about the heaviest module you can use for any job and shouldn't be considered before other alternatives have been ruled out.

    Makeshifts last the longest.