summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-03-16 08:15:58 -0400
committersostler <sbostler@gmail.com>2010-03-16 08:15:58 -0400
commit20fa5f469f7c289e7b0048d9d311e9d3a5cca7b2 (patch)
tree0f7987499bf32c6976640383d4440512601b6786 /src
parent50ee872756994b79ce95bc394cb1b6595c7cd119 (diff)
Added utility functions
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils.clj6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.clj b/src/utils.clj
index 3180e89..5af4edc 100755
--- a/src/utils.clj
+++ b/src/utils.clj
@@ -13,6 +13,12 @@
:user "postgres"
:password "root"}))
+
+;; Misc
+
+(defn seconds [t] (* t 1000))
+(defn minutes [t] (* t 60 1000))
+
;; JSON responses
(def yyyy-mm-dd-formatter (new SimpleDateFormat "yyyy-MM-dd"))