Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: time difference calculation

by RMGir (Prior)
on Oct 28, 2013 at 12:36 UTC ( #1059971=note: print w/replies, xml ) Need Help??

in reply to time difference calculation

You've got a simple typo (which use strict; use warnings; would have pointed out to you...)
#$end=timegm(gmtime()); #should be $end_secs=timegm(gmtime());


Replies are listed 'Best First'.
Re^2: time difference calculation
by Anonymous Monk on Oct 28, 2013 at 12:43 UTC
    D'oh! Thanks.

    That still doesn't seem correct, as I'm getting a difference of around 750 hours.

      You have a difference of 750 hours. Have you looked at the expected time difference?

      Maybe you want to study again the exact ranges of allowed input parameters for Time::Local. Especially re-read the second paragraph of the description, where the documentation draws particular attention to the allowed values for the month.

      Maybe you want to try the following dates and study the error message you get

      2013-02-31 2013-01-28 2013-01-29 2013-01-30 2013-01-31

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059971]
[jedikaiti]: If I had a flying home, I'd be pretty psyched. How cool would that be?
[jedikaiti]: The big question is, does it have autopilot?
[shmem]: good autonomous flyer doesn't need a pilot.
[karlgoethebier]: The One And Only Flying Home

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2018-02-21 17:37 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (285 votes). Check out past polls.