[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] localtime() behavior question



<nods wisely>

Ahhhhhh. That makes sense now. Thanks to John and Chris.

<starts worrying about the Y30K problem...>

Geoff

<much snippage below>
> > Is this a known behavior? Can I get dates before Jan 1, 1904 using
> > localtime()?
> 
> Proper Macintosh behavior (ignoring Perl for a moment) would probably be
> for the result to be the suitable representation of February 6, 2040, at
> 6:28:15 AM.
> 
> Time on Mac is unsigned 
>
>  Mac time in its 32-bit form cannot go before 00:00 on Jan 1, 1904 (or after 
> the above date in 2040, until "windowing" takes over).  In its modern 
> signed 64-bit form, time can go quite a bit farther back (over 30,000 
> years
>
> See also Chris' better (because briefer and more useful) reply.
>    --John

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch