Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Converting 24 hour time back into 12 hour

by Kalaspuff (Beadle)
on Nov 07, 2004 at 00:39 UTC ( [id://405829]=note: print w/replies, xml ) Need Help??


in reply to Re: Converting 24 hour time back into 12 hour
in thread Converting 24 hour time back into 12 hour

Or just on one line;
$hour = ($hour + 11) % 12 + 1;
  • Comment on Re^2: Converting 24 hour time back into 12 hour

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found