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

Re: [MacPerl] timelocal.pl



At 09.32 10/17/97, Lindsay Davies wrote:
>While there is discussion of Time::Local, I notice that MacPerl doesn't return
>
>                'the number of seconds elapsed between
>                 January 1, 1970, and the specified time'
>
>as it states in the Camel book. I know that the Mac and Unix have different
>epochs, but the camel book rather suggests the result should be pretty
>specific.

The Camel book is wrong, unless it has a parenthetical remark about different epochs on different platforms.  The Mac epoch started Fri Jan  1 00:00:00 1904 (print scalar localtime 0).

>Is this a known issue, and should I just roll my own adjustment to bring
>the MacPerl version in line with Unix?

Well, I don't see a need for an adjustment.  Just don't depend on a # of seconds to get a date.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



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