clojure - how to get add a custom-parser in clj-time for AM / PM -
i using clj-time processing dates. have date (def (date-time 2011 01 01 11 30)).
i have defined custom formatter (def custom-formatter (formatter "hh:mm"))
now (unparse custom-formatter a) => "11:30".
however how build formatter gives me , pm respectively?
thanks, murtaza
see http://joda-time.sourceforge.net/apidocs/org/joda/time/format/datetimeformat.html
to want need use following pattern:
(formatter "h:mm a")
Comments
Post a Comment