in reply to Re: Time Difference
in thread Time Difference

FWIW, this works with time(), but not localtime().

Er, yes. Because they have two quite distinct functions. time() returns the epoch seconds representing the current time and localtime() (or gmtime()) returns a list representing the parts of the time (like the struct tm returned by the similarly named C library functions.) when in list context or a string represention thereof when in scalar context.

/J\

Replies are listed 'Best First'.
Re^3: Time Difference
by kpaxian25 (Novice) on Mar 18, 2005 at 19:07 UTC
    Thank you all. That really helps.