comparison lib/js/urweb.js @ 1518:883347f5c3c2

Client-side 'addSeconds'
author Adam Chlipala <adam@chlipala.net>
date Sun, 24 Jul 2011 14:49:40 -0400
parents 3c0803c1acd7
children ade93cd5bc59
comparison
equal deleted inserted replaced
1517:27b8c0a460cf 1518:883347f5c3c2
109 return Math.round((tm2 - tm1) / 1000000); 109 return Math.round((tm2 - tm1) / 1000000);
110 } 110 }
111 111
112 function toSeconds(tm) { 112 function toSeconds(tm) {
113 return Math.round(tm / 1000000); 113 return Math.round(tm / 1000000);
114 }
115
116 function addSeconds(tm, n) {
117 return tm + n * 1000000;
114 } 118 }
115 119
116 120
117 // Error handling 121 // Error handling
118 122