diff options
Diffstat (limited to 'src/utils.clj')
| -rwxr-xr-x | src/utils.clj | 6 |
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")) |
