in reply to Re: Is there a way of storing 600 in a scalar as 0600 (24 hour clock style)?
in thread Is there a way of storing 600 in a scalar as 0600 (24 hour clock style)?
Heh. Then, I suppose, the code becomes:
$time = 600; ($time = "0".$time) if ($time < 1000); ($time = "0".$time) if ($time < 100); ($time = "0".$time) if ($time < 10);
p.s. Don't do this -- stick with sprintf
|
|---|