• 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: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: "Nigel Garvey" <email@hidden>
  • Date: Thu, 20 Oct 2005 20:33:05 +0100

"Mark J. Reed" wrote on Thu, 20 Oct 2005 09:54:42 -0400:

>On 10/20/05, Emile Schwarz <email@hidden> wrote:
>>
>> -- b. HH:MM:SS
>> set hours of myDate to 11
>> set minutes of myDate to 45
>> set seconds of myDate to 0
>
>
>
>The AppleScript date type has no properties named "hours", "minutes", or
>"seconds". It has, instead, a single property named time which holds the
>number of seconds since midnight on the day given by the rest of the
>properties.

As from Tiger (AppleScript 1.10), dates _do_ have 'hours', 'minutes', and
'seconds' properties. Emile's script works in Tiger, but throws a "Stack
overflow" error when run on earlier systems. It's safer to continue to
work with the 'time' property is you want maximum compatibility.

NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Days and hours
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: re: string Manipulation
  • Next by Date: Re: Representable date range: experiment results
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread