in reply to time() off

C:\>perl -e "print scalar localtime();" Thu Sep 9 19:07:14 2004

Replies are listed 'Best First'.
Re^2: time() off
by ketema (Scribe) on Sep 09, 2004 at 13:44 UTC
    And the point of that was?...My localtime is off too...
    perl -e "print scalar localtime();" = Thu Sep 9 13:42:34 2004
    and its not 1:42 pm right now...
      The point of that was (I would guess) to point out that time() is supposed to be UTC-based, with gmtime and localtime available to display it according to your whim. It's only now that we hear that localtime() is giving you a problem.

      Maybe your system clock is wrong? Are you on a *nixy system? What do you get when you type "date" at your friendly local shell prompt?

      --
      edan