Minutes later I answered myself by downloading ecma-262 specification
chapter 15.9 and found out that JS date is int64 that represents the
milliseconds starting 1/1/1970.

Thus...

js date -> unix time is:

time_t unixtime = jsdate/1000;

and

js date -> COleDateTime is:

COleDateTime atldate(jsdate/1000);

That's all.

Anyway thank you Ondrej


On Mar 18, 3:49 pm, Ondrej Zara <[email protected]> wrote:
> > js date <-> unix timestamp
>
> Math.round( new Date().getTime() )
>
> O.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to