Re: Current date in standard additions dictionary
Re: Current date in standard additions dictionary
- Subject: Re: Current date in standard additions dictionary
- From: JollyRoger <email@hidden>
- Date: Sun, 03 Jun 2001 12:22:35 -0500
On 6/3/2001 11:07 AM, "email@hidden" <email@hidden> wrote:
>
I want to get the time only from current date command, without the seconds
>
added. Does anybody know if/how I can do this? Thanks.
I use this:
FormatDateTime(current date)
on FormatDateTime(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)
set hh to time string of theDate
return (yy & mm & dd & " @ " & hh as text)
end FormatDateTime
HTH
JR