Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Display of DateTime::Duration object in human readable string

by parv (Parson)
on Oct 13, 2021 at 07:07 UTC ( [id://11137465]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Conversion to day unit.
    my ( $day, $min, $sec ) = map { $duration->in_units( $_ ) } qw[ days m
    +inutes seconds ];
    $day_duration = $day + ( $min/60 + $sec/3600 ) /24;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found