Re: Fun with dates
Re: Fun with dates
- Subject: Re: Fun with dates
- From: Nigel Garvey <email@hidden>
- Date: Sat, 2 Jun 2001 11:20:18 +0100
Michelle Steiner wrote on Fri, 1 Jun 2001 15:34:21 -0700:
>
When creating a date from a string, for example,
>
>
set foo to "june 1, 1990"
>
date foo
>
>
if the year is a between 1 and 90, the year exands to 2000 plus the year
>
(e.g., 10 exands to 2010).
>
>
If the year is between 91 and 99, the year expands to 1900 plus the year
>
(95 expands to 1995).
There's a fascinating section on how dates are interpreted *when* on
p.235 of the AppleScript Language Guide. It's very clever stuff.
NG