Book HomeJava and XSLTSearch this book

8.225. Time::Local

Provides routines that take the time and return the number of seconds elapsed between January 1, 1970 and the specified time. The arguments are defined like the corresponding arguments returned by Perl's gmtime and localtime functions and the results agree with the results of those functions. Exports two functions; both return -1 if the integer limit is hit. On most machines, this applies to dates after January 1, 2038.

timegm

$time = timegm(sec, min, hours, mday, mon, year)

Converts from Greenwich time.

timelocal

$time = timelocal(sec, min, hours, mday, mon, year)

Converts from local time.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.