in reply to The opposite of localtime()

There are a number of ways that you can do this. The DateTime module can do it (as can the other Date modules), and POSIX has the mktime function. The Time::Local module has the timelocal (so, backwards in name too), which shows up in the Dates section of perlfaq4.

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Replies are listed 'Best First'.
Re^2: The opposite of localtime()
by rvosa (Curate) on Mar 31, 2006 at 07:02 UTC
    I checked out timelocal from Time::Local. It does exactly what I was looking for, including even the reversed name :-)

    Thank you all for your responses! I found what I needed.