• 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: Michelle Steiner <email@hidden>
  • Date: Thu, 28 Jun 2007 13:37:30 -0700


On Jun 28, 2007, at 1:25 PM, cheshirekat wrote:

I am pulling events from a specific iCal calendar to a text document for
my iPod. 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

set time_String to time string of (current date) set text item delimiters to space set _time to text item 1 of time_String set amPM to text item 2 of time_String set text item delimiters to ":" set hrs to text item 1 of _time as integer if amPM is "PM" then set hrs to hrs + 12 set _time to (hrs as text) & text item 2 of _time

-- Michelle

--
History always complicates things.


_______________________________________________ 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: cheshirekat <email@hidden>
References: 
 >time formatting (From: cheshirekat <email@hidden>)

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