Re: text manipulation
Re: text manipulation
- Subject: Re: text manipulation
- From: Shane Stanley <email@hidden>
- Date: Thu, 07 Jun 2001 09:15:33 +1000
>
Date: Tue, 05 Jun 2001 12:47:08 EDT
>
From: email@hidden
>
Subject: text manipulation
>
>
I have a time string as follows "10:56 am". I have been trying to figure out
>
a
>
way to change "am" to "a.m." or to "a.m", with no luck : ). Anybody have a
>
clue? Thanks.
For something different:
set theTime to "10:56 am"
set theOffset to offset of " " in theTime
if time of date theTime > 43199 then
set theTime to text 1 thru theOffset of theTime & "p.m."
else
set theTime to text 1 thru theOffset of theTime & "a.m."
end if
--
Shane Stanley, email@hidden