• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Current hour and minute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Current hour and minute (From: Tod Hallberg <email@hidden>)

  • Prev by Date: Current hour and minute
  • Next by Date: Re: Current hour and minute
  • Previous by thread: Current hour and minute
  • Next by thread: Re: Current hour and minute
  • Index(es):
    • Date
    • Thread