• 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
Getting human-understandable time from iCal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting human-understandable time from iCal


  • Subject: Getting human-understandable time from iCal
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 28 Sep 2004 13:02:25 +0100

Title: Getting human-understandable time from iCal
I'd like to be able to get the time between events in iCal in a more "readable" format.

I can easily get seconds between events:

tell application "iCal"
    
set
t1 to start date of first event of calendar 9 whose summary is "xx01"
    
set
t2 to start date of first event of calendar 9 whose summary is "xx02"
    
set
t3 to t2 - t1
end tell

Can iCal be scripted to return years/months/days/hours/minutes/seconds?

I’ve no problem divving and modding to get days/hours etc – but I need an accurate month count too and presume that iCal, being a calendar...

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
 _______________________________________________
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: Michelle Steiner <email@hidden>
    • Re: Getting human-understandable time from iCal
      • From: Paul Berkowitz <email@hidden>
    • Re: Getting human-understandable time from iCal
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: activate only one window
  • Next by Date: Re: Getting human-understandable time from iCal
  • Previous by thread: Re: check font folders
  • Next by thread: Re: Getting human-understandable time from iCal
  • Index(es):
    • Date
    • Thread