Re: A few questions about dates
Re: A few questions about dates
- Subject: Re: A few questions about dates
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 27 Aug 2006 16:56:55 -0400
On 8/27/06, Doug McNutt <email@hidden> wrote:
On OS neXt, the perl time() function returns the UNIX epoch seconds (since 1970).
Which is supposed to be true for Perl across platforms, but the old
MacPerl returned the Mac OS since-1904 version instead. Headache
city.
The real question is what does the Apple OS use when it stores data?
Based on my Tiger include files, time_t is a typedef for
__darwin_time_t, which is a typedef for long, which is a signed 32-bit
integer. Which means the range of representable times is from Dec
13, 1901 at 20:45:52 to Jan 19, 2038 at 03:14:07 (all UTC).
None of which addresses Sweth's question about what AppleScript does.
But my understanding is that it's not really a meaningful question,
since AS date/times are intended to be opaque types. I also believe
they have no concept of a time zone, which limits their utility...
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden