Re: Date computation
Re: Date computation
- Subject: Re: Date computation
- From: Nigel Garvey <email@hidden>
- Date: Fri, 7 Jan 2005 20:08:37 +0000
In her message of 7/1/2005 19:25 GMT, Michelle wrote:
>On Jan 7, 2005, at 11:54 AM, Nigel Garvey wrote:
>> Midnight on a known Wednesday in the past is subtracted from b
>
>Let's see; that gives us the number of seconds between the 14th of the
>current month and that known date.
Right.
>> and the
>> result is modulated by 'weeks' to leave the difference between midnight
>> on most recent Wednesday (ie. the second one of this month) and the
>> date/time of b.
>
>The difference, expressed in what units? And I still don't see where
>the most recent Wednesday is achieved here.
The difference is in seconds, still. The modding by 'weeks' gets rid of
the exact number of weeks between 00:00:00 on Wednesday 1 Jan 1000 and
00:00:00 on the Wednesday before (or including) the 14th of the current
month, leaving just the number of seconds from the latter date/time to
the date/time of 'b'. When these seconds are subtracted from b, the
result is the required Wednesday date/time.
>>> tell b to set {day, day} to {32, 14}
>
>And I certainly don't understand that.
It's the same as:
set b's day to 32 -- overflow b into the following month
set b's day to 14 -- now set b to the 14th of that month
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden