Re: Need help with finding first of the month
Re: Need help with finding first of the month
- Subject: Re: Need help with finding first of the month
- From: Nigel Garvey <email@hidden>
- Date: Fri, 2 Jul 2004 15:56:03 +0100
Walter Ian Kaye wrote on Thu, 1 Jul 2004 15:27:23 -0700:
>
set today to (current date)
>
copy today to nextMonth
>
set day of nextMonth to 28
>
set nextMonth to nextMonth + 4 * days
It's a little-appreciated fact that you can simply set the day to 32 and
get an overflow into the following month. :-)
set day of nextMonth to 32
set day of nextMonth to 1
(nextMonth - today) div days
John Baxter wrote on Thu, 01 Jul 2004 17:23:59 -0700:
>
At least we no longer have to worry about things like the US Navy changing
>
the date at noon rather than midnight, as they did well into the middle
>
1800s. (There really was a reason...noon is relatively easy to detect,
>
except on really cloudy days. GPS removes that qualifier. ;-))
Fascinating! I think the decision to stop doing that was a wise one. ;-)
NG
_______________________________________________
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.