Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time formatting



"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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.