Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Converting 24 hour time back into 12 hour

by atcroft (Abbot)
on Nov 07, 2004 at 00:23 UTC ( [id://405826]=note: print w/replies, xml ) Need Help??


in reply to Converting 24 hour time back into 12 hour

Try inserting this after that line: $hour = ($hour > 12 ? $hour % 12 : $hour);

Hope that helps.

(By the way, 24-hour time is just as valid as 12-hour time, and simpler, lacking the added complication of having to specify AM/PM. ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405826]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2024-04-18 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found