Re: Newbie Date questions
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