Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateUtils.setMonths的建议 #2

Open
KnightOfWind opened this issue Aug 19, 2018 · 0 comments
Open

DateUtils.setMonths的建议 #2

KnightOfWind opened this issue Aug 19, 2018 · 0 comments

Comments

@KnightOfWind
Copy link

一般符合大习惯的月份范围是:1-12,Java8中LocalDate和LocalDateTime的getMonthValue的返回值也是这个范围,这样更容易理解,而且也无需再做一次转换,即使切换到新的API也不会付出额外的抓换成本(主要是使用习惯问题)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant