Re: getting the date
Re: getting the date
- Subject: Re: getting the date
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 30 Dec 2003 14:22:04 -0800
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...
thanks,
-boo
imagining others are curious too
_______________________________________________
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.