From 2bf2fd370971509c6a00fb7000d9c2aa28852719 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 24 Jul 2011 14:49:40 -0400 Subject: Client-side 'addSeconds' --- lib/js/urweb.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 9834fde6..6343543e 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -113,6 +113,10 @@ function toSeconds(tm) { return Math.round(tm / 1000000); } +function addSeconds(tm, n) { + return tm + n * 1000000; +} + // Error handling -- cgit v1.2.3