Re: Broken date math on AppleScript 2.0
Re: Broken date math on AppleScript 2.0
- Subject: Re: Broken date math on AppleScript 2.0
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 20 Feb 2008 09:50:17 -0500
On Feb 19, 2008 9:08 PM, Doug McNutt <email@hidden> wrote:
> Note that the number for today is bigger than 2^29
> and in fact is negative if treated as a 32 bit signed
> integer.
Yeah, the internal date representation isn't the issue we're seeing
here. It seems to be related to the way AppleScript handles
arithmetic expressions.
Anyway, the typical UNIX 32-bit signed integer second count will roll
over to a negative number at 03:14:08 UTC on Tuesday, January 19,
2038. Obviously any similar count based on an epoch before 1970 will
run out that much earlier than that date.
> The year of the dog is gone. We're now in the year of the > rat, I think.
Last year wasn't the dog either; it was the pig or boar. The year
before that was the dog. But yes, the current year is the Rat, the
first year of the 12-year cycle. More specifically it's the year of
the Earth Rat, which is the 25th year of the 60-year cycle.
--
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden