I always found that expression odd. I usually use:
$mday = sprintf "%02d", $mday;
If the $mday variable is already a two digit value, no harm, and if not it now is one. Less code is nice.
In reply to Re^2: localtime()
by Belgarion
in thread localtime()
by LeeC79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |