• 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: "Mark J. Reed" <email@hidden>
  • Date: 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.  You can use the built-in constants minutes (defined as 60) and hours (defined as 60 × 60 = 3600), which I didn't know about until this thread, to assemble a time value legibly:

set time of myDate to 11 * hours + 45 * minutes + 0


PS: in a script I wrote some weeks ago, I started either 70 years ago or last
year and add 1 day per "repeat", skipping Sundays or skipping the whole week
except Sunday or the seven days a week to generate a long (from around 150 to
approx 800) lines without trouble (it tooks me many head shaking on the wall /
minutes to wrote it).

What was the goal of that script?  I don't quite understand what it did.

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

  • Prev by Date: Re: About This Mac
  • Next by Date: Re: Convert CSV to ICal
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread