Wednesday 15 August 2012

javascript - how can I subtract time from time for time remaining? -


Using Javascript, I HH: MM: SS? How can I reduce

For example, I have 12:54:45 and I want to reduce 11:35:53 for the remaining time in 4732 seconds

  var first = (new date ('01 January, 2000 12:54:45 ')). GetTime (); Var second = (New Date ('01 Jan, 2000 11:35:53 ')). GetTime (); Var difference INSeconds = (second - first) / 1000; // 4732   

I chose 2000-01-01 as the date because it does not make any difference because it is the same, we only want to calculate the difference Are there.

No comments:

Post a Comment