• 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: time formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time formatting


  • Subject: Re: time formatting
  • From: "Nigel Garvey" <email@hidden>
  • Date: Fri, 29 Jun 2007 12:42:36 +0100

"Mark J. Reed" wrote on Thu, 28 Jun 2007 23:04:44 -0400:

>On 6/28/07, T&B <email@hidden> wrote:

>> set hoursString to hours of testDate
>> set minutesString to minutes of testDate
>
>
>
>Oh, well, that's much easier than my suggestion.  See what happens when you
>have good reference materials? :)

The 'hours', 'minutes', and 'seconds' properties of dates were introduced
with AppleScript 1.10 (early Tiger). They're probably ideal for
cheshirecat's query, but in scripts that might be used on pre-Tiger
systems, 'time' is still the way to go.

As a point of pedantry, the values returned are integers, not strings.  ;)


NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Folder Action for changing privileges
  • Next by Date: Apple Mail, Why is "?" not equal to "?"
  • Previous by thread: Re: time formatting
  • Next by thread: Apple Mail, Why is "?" not equal to "?"
  • Index(es):
    • Date
    • Thread