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
Post a Comment