javascript - Could someone explain this code for me? window.clientTimeDivergence = (1366265216 * 1000) - (new Date).getTime(); -


window.clienttimedivergence = (1366265216 * 1000) - (new date).gettime();

i want know changing value 1366265216 means; , whole expression means.

thanks all!

(new date()).gettime() gives present time in milliseconds, 1366265216 appears time in seconds being converted milliseconds subtract resultant (new date()).gettime().

by way, u missing () in (new date).getdate();

plus, u can check var date = new date(1366265216) or var date = new date(1366265216*1000) find out date/time out of 1366265216.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -