• 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: Newbie Date questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Date questions


  • Subject: Re: Newbie Date questions
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 2 Mar 2010 16:26:27 -0500

On Tue, Mar 2, 2010 at 4:21 PM, Christopher Nebel <email@hidden> wrote:
> On Mar 1, 2010, at 5:10 PM, Michelle Steiner wrote:
>
>>> If you want a date object but don't care about the time, you can just
>>> set the time component to a default value, e.g.
>>>
>>> tell modDate to set {its hours, its minutes, its seconds} to {0, 0, 0}
>>
>> I've always used
>>
>> date (date string of modDate)
>
> Be warned that that doesn't work in some locales in Leopard.  It should work reliably world-wide in Snow Leopard.  I also prefer the "set" form because it makes the intent clearer.

I also like it because I can standardize on a time other than
midnight.  I'm fond of noon as its less susceptible to off-by-one
errors due to rounding.  Then again, it doesn't work pre-Leopard,
right?


--
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Newbie Date questions (From: ba95 <email@hidden>)
 >Re: Newbie Date questions (From: "Mark J. Reed" <email@hidden>)
 >Re: Newbie Date questions (From: Michelle Steiner <email@hidden>)
 >Re: Newbie Date questions (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Newbie Date questions
  • Next by Date: Re: QuickTimePlayerX document properties
  • Previous by thread: Re: Newbie Date questions
  • Next by thread: Re: Newbie Date questions
  • Index(es):
    • Date
    • Thread