| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 09:32p +0000 12/30/2003, Nigel Garvey didst inscribe upon an electronic papyrus:
Here we go again:
set theDate to (current date)
set {year:y, day:d} to theDate
copy theDate to b
set b's month to January
text 3 thru 8 of ((y * 10000 + (b - 2500000 - theDate) div -2500000 *
100 + d) as string)
OK, I give. Can you please *explain* that 2500000 arithmetic?
There has to be a science behind it...
y * 10000
(b - 2500000 - theDate) div -2500000 * 100
+ d
| References: | |
| >Re: getting the date (From: Nigel Garvey <email@hidden>) | |
| >Re: getting the date (From: Walter Ian Kaye <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.