diff options
| author | sostler <sbostler@gmail.com> | 2010-03-16 08:15:58 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-03-16 08:15:58 -0400 |
| commit | 20fa5f469f7c289e7b0048d9d311e9d3a5cca7b2 (patch) | |
| tree | 0f7987499bf32c6976640383d4440512601b6786 /src/utils.clj | |
| parent | 50ee872756994b79ce95bc394cb1b6595c7cd119 (diff) | |
Added utility functions
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")) |
