Re: time formatting
Re: time formatting
- Subject: Re: time formatting
- From: cheshirekat <email@hidden>
- Date: Thu, 28 Jun 2007 21:32:48 -0600
Thanks Michelle!
That worked exactly as I needed it.
cheshirekat
On Thu, Jun 28, 20071:37 PM, the following words from Michelle Steiner
email@hidden, emerged from a plethora of SPAM ...
>
>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
--
We allow our ignorance to prevail upon us and make us think we can
survive alone, alone in patches, alone in groups, alone in races, even
alone in genders.
_Maya Angelou (b. 1928), U.S. author_
* MAC PRO 2 GHz Quad Xeon * OS X 10.4.9 * 3 GB RAM *
_______________________________________________
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