import batch next

This commit is contained in:
Bryce Covert
2021-12-22 21:47:37 -08:00
parent 7489426ccb
commit 58fd014082
6 changed files with 75 additions and 55 deletions

View File

@@ -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]