We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506d16b commit f784bddCopy full SHA for f784bdd
src/clj_time/format.clj
@@ -79,6 +79,11 @@
79
[^DateTimeFormatter f ^DateTimeZone dtz]
80
(.withZone f dtz))
81
82
+(defn with-default-year
83
+ "Return a copy of a formatter that uses the given default year."
84
+ [^DateTimeFormatter f ^Integer default-year]
85
+ (.withDefaultYear f default-year))
86
+
87
(def ^{:doc "Map of ISO 8601 and a single RFC 822 formatters that can be used for parsing and, in most
88
cases, printing."}
89
formatters
0 commit comments