• 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: More date/time stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More date/time stuff


  • Subject: Re: More date/time stuff
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 19 Nov 2009 16:10:18 -0700


On Nov 19, 2009, at 10:53 AM, Luther Fuller wrote:

set today to current date
set hours of today to 0
set minutes of today to 0
set seconds of today to 0

This doesn't:

set today to current date
set {hours, minutes, seconds} of today to {0, 0, 0}

I don't know what you are trying to achieve,
so I'll just guess and claim that …

Changing the time of the date.  I just happened to use zeroes in the example.

This works too:

set today to date (date string of (current date))

I know; I've been using that for a few years, but it works only to set it to midnight.

-- Michelle

-- 
People seem to misinterpret complexity as sophistication. -- Niklaus Wirth

 _______________________________________________
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

References: 
 >More date/time stuff (From: Michelle Steiner <email@hidden>)
 >Re: More date/time stuff (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: More date/time stuff
  • Next by Date: Re: More date/time stuff
  • Previous by thread: Re: More date/time stuff
  • Next by thread: Re: More date/time stuff
  • Index(es):
    • Date
    • Thread