1. Miki Tebeka
  2. clj-strftime

Commits

Miki Tebeka  committed 0dba187

comments

  • Participants
  • Parent commits 737ef65
  • Branches default

Comments (0)

Files changed (1)

File src/strftime.clj

View file
  • Ignore whitespace
 
 (defmethod strftime Date
   [fmt t]
+  ; Convert strftime to String.format format (e.g. %m -> %1$tm)
   (let [fmt (.replaceAll fmt "%([a-zA-Z])" "%1\\$t$1")]
     (format fmt t)))