laziness, impatience, and hubris | |
PerlMonks |
Re: Converting 24 hour time back into 12 hourby TedPride (Priest) |
on Nov 08, 2004 at 05:24 UTC ( [id://405975]=note: print w/replies, xml ) | Need Help?? |
No point doing extra work computing AM/PM if you don't need them, and if you do, it's easy to determine AM/PM by comparing $hour and $shour. Or if all you want is the hour and you don't care about the rest at all:
In Section
Seekers of Perl Wisdom
|
|