• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fun with dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Entourage: make new contact
  • Next by Date: Re: 100% AppleScript
  • Previous by thread: Fun with dates
  • Next by thread: Re: Fun with dates
  • Index(es):
    • Date
    • Thread