• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting human-understandable time from iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting human-understandable time from iCal
      • From: Doug McNutt <email@hidden>
References: 
 >Re: Getting human-understandable time from iCal (From: Martin Orpen <email@hidden>)

  • Prev by Date: creating logs of all actions performed
  • Next by Date: Re: How to parse a textfile ?
  • Previous by thread: Re: Getting human-understandable time from iCal
  • Next by thread: Re: Getting human-understandable time from iCal
  • Index(es):
    • Date
    • Thread