Don't ask to ask, just ask | |
PerlMonks |
Re: Is there a way of storing 600 in a scalar as 0600 (24 hour clock style)?by tenatious (Beadle) |
on Aug 21, 2000 at 05:29 UTC ( [id://28758]=note: print w/replies, xml ) | Need Help?? |
The above answers are adequate, but I'd like to add that all you have to do is treat the 600 like a string instead of a number. So if you wanted to make a "24 hour" variable, all you'd have to do is something like;
In Section
Seekers of Perl Wisdom
|
|