Re: DOMTimeStamp interface not defined in L3 events...

On Sat, 3 Oct 2009, Jacob Rossi wrote:
> Annevk wrote:
> > I believe last time we looked into this it was figured out we could not
> > change it to a Date object. I wish we could, but there is probably too
> > much content out there using it in this way already.
> 
> It probably does have to stay the say it is for backwards
> compatibility. But it sure would be nice to be able to do something
> like:
> 
> var jsdate = e.timeStamp.toDate();

Can't you do

  var jsdate = new Date(e.timeStamp);

...? (Might need a factor of 1000 multiplier.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 4 October 2009 01:54:27 UTC