Is it safe to compare JavaScript getTime () on different systems?

JavaScript getTime () returns "the number of milliseconds since January 1, 1970, 00:00:00 UTC".

Can I rely on the fact that it looks like different cars? I don't need it to be accurate to the millisecond, in just a few seconds.

Or do I need to use the external time service API, as in this question ?

Where does JavaScript get the current time from - does it depend on the machine clock?

+5
source share
2 answers

Can I rely on the fact that it looks like different cars?

No.

Where JavaScript gets the current time from

The system time and time during which this javascript is executed.

API- , ?

.

+6

Javascript ( ?).

, , . , , , .

0

All Articles