summaryrefslogtreecommitdiff
path: root/itjs/it.js
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-07-02 14:24:27 +0000
committerThomas BrĂ¼derli2007-07-02 14:24:27 +0000
commit561492c367a3fb054891305eb3cd27f613c6ee7b (patch)
tree5e1167f62e26ed4bb0cda403ece1950101338343 /itjs/it.js
parent38351f0b8476b39fc2762ebf081cddefd411ddf8 (diff)
downloaditools-561492c367a3fb054891305eb3cd27f613c6ee7b.tar.gz
itools-561492c367a3fb054891305eb3cd27f613c6ee7b.tar.bz2
itools-561492c367a3fb054891305eb3cd27f613c6ee7b.zip
Include now() to it.js
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
*/