in reply to •Re: localtime()
in thread localtime()

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.