Don't know if this should be on the programming board, but since I am using Javascript I have a number that is nanoseconds since epoch time (Unix)
e.g. 953593200000
and I want to convert it to a human date object in Javascript, since you can do
Ex:
var date = new Date( some_value_in_miliseconds_since_epoch);
I thought just dividing by 1000000 would work (1 milisec = 1000000 nanosecs), but it is still not right, anyone know how?
e.g. 953593200000
and I want to convert it to a human date object in Javascript, since you can do
Ex:
var date = new Date( some_value_in_miliseconds_since_epoch);
I thought just dividing by 1000000 would work (1 milisec = 1000000 nanosecs), but it is still not right, anyone know how?