Fun with dates
Fun with dates
- Subject: Fun with dates
- From: Michelle Steiner <email@hidden>
- Date: 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).
If the year is between 100 and 999, the year expands to 2000 plus the
year (432 expands to 2432).
If the year is between 1000 and 9999, the year is accepted as entered.
If the year is between 10000 and 29940, only the last four digits are
considered, and the first two digits are ignored. (e.g. 10000 becomes the
year zero, 10100 becomes the year 100).
Any larger numbers, the results are inconsistent.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------