in reply to Re: why are timegm and timelocal returning the same epoch seconds values
in thread why are timegm and timelocal returning the same epoch seconds values

For me this code works. Why do you think your system's timezone is not GMT+0 ?

Since the code is incomplete (  Undefined subroutine &main::timelocal called ) how is it possible that this code works for you?

  • Comment on Re^2: why are timegm and timelocal returning the same epoch seconds values
  • Download Code

Replies are listed 'Best First'.
Re^3: why are timegm and timelocal returning the same epoch seconds values
by vsespb (Chaplain) on May 14, 2013 at 20:30 UTC
    I googled for "perl timegm" and found that I need to
    use Time::Local;
    Perhaps OP use different module and that's the reason of problem?