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

Re: Seconds conversion

by Matts (Deacon)
on Jul 09, 2002 at 09:21 UTC ( [id://180434]=note: print w/replies, xml ) Need Help??


in reply to Seconds conversion

Use Time::Seconds from the Time::Piece distribution. It allows you to do:

my $secs = Time::Seconds->new(1332443); printf "%d days, %d hours, %d min, %d sec\n", $secs->days, $secs->hours, $secs->mins, $secs->secs;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-03-29 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found