• 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: kai <email@hidden>
  • Date: Thu, 20 Oct 2005 23:12:06 +0100


On 20 Oct 2005, at 21:48, Mark J. Reed wrote:

On 10/20/05, Nigel Garvey <email@hidden> wrote:
As from Tiger (AppleScript 1.10), dates _do_ have 'hours', 'minutes', and
'seconds' properties.


Cool!

But hm. Does that mean that the "minutes" property is also the "60" property?

Not exactly, Mark. The AppleScript _constant_ "minutes" has a value of 60. A date's "minutes" property is whatever it happens to be at a given time. There's obviously a similar distinction for "hours":


-------------------

tell (current date) to {{hours, minutes}, its {hours, minutes}}
--> {{3600, 60}, {23, 11}} (* run here at 23:11 *)

-------------------

Applescript namespace stuff makes my head hurt. :)

So... what happened to your sense of fun and adventure? ;-)

---
kai


_______________________________________________ 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
References: 
 >Re: Days and hours (From: "Nigel Garvey" <email@hidden>)
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: string Manipulation
  • Next by Date: Re: Days and hours
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread