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

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]
[vedagiri89]: CentOS Linux release 7.0.1406 (Core)
[hippo]: How did you install libapreq2?
[vedagiri89]: that one is done by system team from the tar i guess
[hippo]: Really? Not using the one from the CentOS repository? Perhaps that's the problem.
[vedagiri89]: i need when this issue will come usually
[hippo]: How about mod_perl? Was that installed from the CentOS packge or from source?
[vedagiri89]: from the source
[hippo]: But is under vendor_perl in your error message so you are mixing up modules installed from the packager and by hand. That's rarely a good plan.
[vedagiri89]: the prm fine if i run file directly..not working if i run through apache http file

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2018-06-19 11:35 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (113 votes). Check out past polls.