javascript - Would event.timeStamp and Date.getTime have the same reference? -
would event.timestamp
, date.gettime()
return same values if taken @ exact same time?
for instance, use gettime()
in order calculate how time passed since event occurred, or might happen 2 use different epoch / references?
no, they're on same reference, utc, time zone of date internal storages.
you can use date.now()
.
Comments
Post a Comment