Re: text manipulation
Re: text manipulation
- Subject: Re: text manipulation
- From: Nigel Garvey <email@hidden>
- Date: Thu, 7 Jun 2001 00:20:19 +0100
Arthur J Knapp wrote on Tue, 05 Jun 2001 19:33:11 -0400:
>
> 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.
>
>
set s to "10:56 am"
>
>
(text 1 thru 6 of s) & "a.m."
>
-- > "10:56 a.m."
Or, of course, for all-day use:
set s to "10:56 am"
(text 1 thru -2 of s) & ".m."
-- > "10:56 a.m."
set s to "10:56 pm" ....
NG