• 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: time formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time formatting


  • Subject: Re: time formatting
  • From: T&B <email@hidden>
  • Date: Fri, 29 Jun 2007 12:59:35 +1000

On 29/06/2007, at 9:33 AM, Mark J. Reed wrote:

OK, so where can I find out what a date object has? Where is the dictionary for the built-in AppleScript classes?

I extracted it ages ago (last millenium) and published it here: http://www.tandb.com.au/applescript/class/ I hope that helps.

When done, I have events that have  strings of

               Wednesday 6/27/07 from 11:00:00 AM to 4:00:00 PM

I would like to have universal times of

Wednesday 6/27/07 from 1100 to 1600

I think you want something like:

set testDate to (current date) -- change to your date from iCal etc
set weekdayString to weekday of testDate
set shortDateString to short date string of testDate
set hoursString to hours of testDate
set minutesString to minutes of testDate
set reformattedDateString to "" & weekdayString & space & shortDateString & space & hoursString & minutesString


Tom

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: time formatting
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: time formatting (From: "Nigel Garvey" <email@hidden>)
 >Re: time formatting (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: time formatting
  • Next by Date: Re: time formatting
  • Previous by thread: Re: time formatting
  • Next by thread: Re: time formatting
  • Index(es):
    • Date
    • Thread