Re: Current hour and minute
Re: Current hour and minute
- Subject: Re: Current hour and minute
- From: David Blache <email@hidden>
- Date: Thu, 01 Feb 2001 14:25:10 -0600
on 2/1/2001 12:55 PM, Tod Hallberg (email@hidden) wrote:
>
What is the most efficient wat to get the time to text and in the
>
format (HH:MM am/pm)
Hi Tod,
Here is a place to start:
on FormatDate(theDate)
set theDate to theDate as date
set dd to text -2 thru -1 of ("0" & theDate's day)
copy theDate to tempDate
set the month of tempDate to January
set mm to text -2 thru -1 of ,
("0" & 1 + (theDate - tempDate + 1314864) div 2629728)
set yy to text -1 thru -4 of ((year of theDate) as text)
return (yy & mm & dd as text)
end FormatDate
-David
--
Laughing stock: cattle with a sense of humor.
___________________________________________________________________
David Blache email@hidden
Metrowerks Corporation
http://www.metrowerks.com