Re: time formatting
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