You can clone with
HTTPS or Subversion.
For improved usability, concrete date-time classes with a format (aka print) method should also have a format method that takes the pattern as an argument, i.e. format("yyyy-mm-dd").
(Exracted from issue #210)
This isn't something I fully understand, and I'm not sure I agree with. To be complete you need two methods (a variant taking a locale).
Are we talking about classes like LocalDate? or just DateTimeFormatter? (which is the only class with a format method.
The proposal was to make classes like LocalDate, LocalTime more format friendly by providing a direct method with a pattern, for example:
LocalDateTime ldt =;
String s = ldt.format("yyyy");
This is low priority given the limited time we have left.
Its two additional methods for each concrete class. I did it in Joda-Time, but I don't think it really paid its way.
Defer adding another convenience method. With the rename of print to format, the code can be
Or reuse a predefined formatter: