Re: Getting human-understandable time from iCal
Re: Getting human-understandable time from iCal
- Subject: Re: Getting human-understandable time from iCal
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 29 Sep 2004 03:14:06 -0700
On 9/29/04 2:10 AM, "Martin Orpen" <email@hidden> wrote:
> To see if I can catch those pesky leap days and get a more accurate day
> calculation.
The easiest way might just be to test for it, if the period between later
and earlier encompasses March 1:
try
date "29 February," & theYear
set item 2 of nDays to 29
on error
set item 2 of nDays to 28
end try
Test for every year between (earlier's year) and (later's year) - or for
every fourth year after you get a positive - beginning one year later if
earlier's month and day is after Feb 28 and ending one year earlier if
later's month and day is Feb 28 or earlier.
--
Paul Berkowitz
_______________________________________________
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