[threeten-dev] Month methods
Janario Oliveira
janarioliver at gmail.com
Tue Jun 4 17:34:34 PDT 2013
Hi guys!
I was looking the api and an interesting thing called my attention
The Month(enum) doesn't have the same methods found in others classes like
LocalDate, LocalDateTime and almost every mainly classes I've seen
The methods are now() and format(DateTimeFormatter formatter)
Without these I should do something like:
Month currentMonth = LocalDate.now().getMonth();
//It's ok but different from the way I
prefer(LocalDate.format(DateTimeFormatter formatter))
private static final DateTimeFormatter
MY_MONTH_FORMATTER=DateTimeFormatter.ofPattern("MMM");
MY_MONTH_FORMATTER.format(currentMonth)
Is it possible to provide these methods?
They would be much more useful once other classes have this standard
Thanks
Janario Oliveira
More information about the threeten-dev
mailing list