Re: Counting & trashing
Re: Counting & trashing
- Subject: Re: Counting & trashing
- From: Axel Luttgens <email@hidden>
- Date: Tue, 13 Jul 2004 16:04:15 +0200
Nigel Smith wrote:
[...]
Does anyone have a way to hard-code a date earlier than 1/1/1000?
I fear not to have one :-(
From the ASLG:
When you compile a script, AppleScript displays date and time values
according to the format specified in the Date & Time control panel.
[...]
AppleScript's support for dates is based on the same operating
system utilities other Macintosh applications use. Mac OS date and
time utilities have correctly handled issues related to the year
2000 since the introduction of the Macintosh. The original date and
time utilities, introduced with the Macintosh 128K in 1984, use a
32-bit value to store seconds, starting at 12:00:00 a.m., January 1,
1904 and extending to 6:28:15 a.m. on February 6, 2040.
More recent date and time utilities use a 64-bit signed value that
can represent dates from 30081 B.C. to 29940 A.D. However,
AppleScript currently will not handle dates before 1/1/1000 or after
12/31/9999. For more information on Mac OS date and time utilities,
see Inside Macintosh: Operating System Utilities. available at the
Apple Developer website.
So, even if the ASLG sometimes looks sooo deliciously old-fashioned
(aaah, that 64K ROM), I guess at least one point remains accurate: AS's
interpretation of date strings is strongly bound to user interface
routines provided by the OS.
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.