Can we please put an end to this idiom now? I think I first saw it in a MSA program, and now am boggled at how far it has gotten. Definitely a bad book or website you got that from, sir. I'd distrust the rest of the stuff you got there.if (length $mday == 1){ $mday = "0".$mday; }
As for "yesterday", just subtract 86400 from "time", and do localtime() on that. It'll be wrong (by an hour) twice a year, but close enough for most purposes.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: localtime()
by merlyn
in thread localtime()
by LeeC79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |