Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the date



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.

References: 
 >Re: getting the date (From: Nigel Garvey <email@hidden>)



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.