• 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 date in standard additions dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Current date in standard additions dictionary (From: email@hidden)

  • Prev by Date: Current date in standard additions dictionary
  • Next by Date: Avoiding Scientific Notation?
  • Previous by thread: Current date in standard additions dictionary
  • Next by thread: Re: Current date in standard additions dictionary
  • Index(es):
    • Date
    • Thread