summaryrefslogtreecommitdiff
path: root/itjs/it.js
diff options
context:
space:
mode:
Diffstat (limited to 'itjs/it.js')
-rw-r--r--itjs/it.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/itjs/it.js b/itjs/it.js
index 5afdb52..4daf2c0 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -158,6 +158,14 @@ function it_set(dst, src)
}
/**
+ * Return the current timestamp
+ */
+function it_now()
+{
+ return new Date().getTime();
+}
+
+/**
* Encodes arbitrary string for use in an url
* @param str string to be encoded
*/