summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"))