W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2009

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

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 4 Oct 2009 02:03:21 +0000 (UTC)
To: Jacob Rossi <rossi@gatech.edu>
Cc: annevk@opera.com, www-dom@w3.org, travil@microsoft.com
Message-ID: <Pine.LNX.4.62.0910040202490.21884@hixie.dreamhostps.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:03 GMT