Hey Jeff,

Good point.

Dean uses the following:

!!object.getTimezoneOffset;

Which seems like a reasonable enough choice, and avoids the issue you
mentioned.

Best,

Tobie

P.S.: I'm not really sure Prototype needs this in core, though.


On Feb 2, 5:02 am, Jeff Watkins <[EMAIL PROTECTED]> wrote:
> because if you are testing a Date from another document its  
> constructor won't match your document's Date constructor.
>
> On 1 Feb, 2008, at 4:20 PM, kangax wrote:
>
> > Why not simply:
>
> > Object.isDate = function(o) {
> >  return !!(o && o.constructor == Date);
> > }
>
> > - kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to