naming adjustments
This commit is contained in:
parent
fd465f3466
commit
87ea877b26
|
@ -56,7 +56,7 @@
|
|||
(str (:namespace value) "|" (format-search-value (:value value)))
|
||||
|
||||
(instance? Date value)
|
||||
(->iso-timestamp value)
|
||||
(->timestamp value)
|
||||
|
||||
:else
|
||||
(-> value str escape-parameter)))
|
||||
|
|
|
@ -17,19 +17,19 @@
|
|||
(.setTimeZone df tz)
|
||||
(.format df date))))
|
||||
|
||||
(defn ->iso-timestamp
|
||||
(defn ->timestamp
|
||||
"returns an ISO8601 formatted date/time string for the given date object"
|
||||
[^Date date]
|
||||
(format-date date iso8601-timestamp))
|
||||
|
||||
(defn ->iso-local-timestamp
|
||||
(defn ->local-timestamp
|
||||
"returns an ISO8601 formatted date/time string for the given date object. the timestamp
|
||||
will not include any timezone information and so is appropriate for local timezone
|
||||
date/times only."
|
||||
[^Date date]
|
||||
(format-date date iso8601-timestamp))
|
||||
|
||||
(defn ->iso-date
|
||||
(defn ->date
|
||||
"returns an ISO8601 formatted date string for the given date object"
|
||||
[^Date date]
|
||||
(format-date date iso8601-date))
|
||||
|
|
Reference in a new issue