in reply to 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 ?
  • Comment on Re: why are timegm and timelocal returning the same epoch seconds values

Replies are listed 'Best First'.
Re^2: why are timegm and timelocal returning the same epoch seconds values
by Anonymous Monk on May 14, 2013 at 20:24 UTC

    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?

      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?