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\
In reply to Re^2: Time Difference
by gellyfish
in thread Time Difference
by kpaxian25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |