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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -