Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Work Roster Calcuation

by pc88mxer (Vicar)
on Jun 02, 2008 at 14:50 UTC ( [id://689698]=note: print w/replies, xml ) Need Help??


in reply to Work Roster Calcuation

One word of advice -- when I first started to use DateTime I was confused by the fact that the difference of two DateTime objects was not directly convertible into a number of seconds.

What you'll probably want to do is use the ->utc_rd_as_seconds method to first convert the DateTime objects to seconds and then perform the subtraction. Alternatively, subtract_datetime_absolute might work, too, although the former method also ignores leap seconds which may be helpful.

Log In?
Username:
Password:

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

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

    No recent polls found