On Wed, Apr 18, 2001 at 07:48:53AM -0700, Andrew O. Mellinger wrote:
} I'd have to agree with Jake here.  This is odd.  When I run the 
} following snipper on my Mac I get:
} 
} $t1 = 0;
} @c = gmtime($t1);
} print "GMT:   $t1 = @c \n";
} @c = localtime($t1);
} print "Local: $t1 = @c \n";
} 
}    We see:
} 
} GMT:   0 = 0 0 7 1 0 4 5 0 1
} Local: 0 = 0 0 0 1 0 4 5 0 1

MacOS zero of time is Jan 1 1904 local time.

} 
}    (I'm in pacific time with daylight savings time so I am have a UTC of -7)
} 
} If I run that same code snippet on different linux boxes I get.
} 
} GMT:   0 = 0 0 0 1 0 70 4 0 0
} Local: 0 = 0 0 16 31 11 69 3 364 0

Unix zero of time is Jan 1 1970 UTC.

} 
} This looks to be what a person would expect. It looks like the logic 
} in the gmtime and localtime are somewhat reversed.  This requires 
} more investigation.
} 
} Chris Nandor, are you reading this?  Is the MacPerl source available?
} 
} -Andrew


-- 
Paul Schinder
[EMAIL PROTECTED]

Reply via email to