import batch next
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(ns auto-ap.time
|
||||
(:require [clj-time.core :as time]
|
||||
[clj-time.format :as f]))
|
||||
[clj-time.format :as f]
|
||||
[clojure.tools.logging :as log]))
|
||||
|
||||
(defn localize [d]
|
||||
(time/to-time-zone d (time/time-zone-for-id "America/Los_Angeles")))
|
||||
@@ -10,6 +11,7 @@
|
||||
|
||||
(def normal-date "MM/dd/yyyy")
|
||||
(def iso-date "yyyy-MM-dd")
|
||||
(def iso-date-time (:date-hour-minute-second-ms f/formatters))
|
||||
|
||||
(defn parse [v format]
|
||||
(try
|
||||
@@ -22,6 +24,7 @@
|
||||
(try
|
||||
(f/unparse (f/formatter format) v)
|
||||
(catch Exception e
|
||||
(log/warn e)
|
||||
nil)))
|
||||
|
||||
(defn unparse-local [v format]
|
||||
|
||||
Reference in New Issue
Block a user