From 561492c367a3fb054891305eb3cd27f613c6ee7b Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Mon, 2 Jul 2007 14:24:27 +0000 Subject: Include now() to it.js --- itjs/it.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'itjs/it.js') diff --git a/itjs/it.js b/itjs/it.js index 5afdb52..4daf2c0 100644 --- a/itjs/it.js +++ b/itjs/it.js @@ -157,6 +157,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 -- cgit v1.2.3