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

Java 8 supports years, months, dates, etc. #315

Closed
yhan219 opened this issue Jul 12, 2022 · 3 comments
Closed

Java 8 supports years, months, dates, etc. #315

yhan219 opened this issue Jul 12, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@yhan219
Copy link

yhan219 commented Jul 12, 2022

Summary(Description of this PR)

Support for Java 8 date and time APIs including

  • LocalDate
  • LocalDateTime
  • LocalTime
  • YearMonth
  • Year

Brief explanation of the feature.

Basic Example(Usage Example of the PR)

  • For LocalDate, the format will be 2022-01-10
  • For LocalDateTime, the format will be 2022-01-01 01:01:01
  • For LocalTime, the format will be 01:01:01
  • For YearMonth, the format will be 2022-01
  • For Year, the format will be 2022

Allows configuring the relative format in the configuration.

If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.

Motivation(Purpose of this PR)

Why are we doing this? What use cases does it support? What is the expected outcome?

@yhan219 yhan219 added the enhancement New feature or request label Jul 12, 2022
@shalousun
Copy link
Collaborator

shalousun commented Jul 12, 2022

@yhan219 Isn't the default format for LocalDate and LocalDateTime already correct?

@yhan219
Copy link
Author

yhan219 commented Jul 12, 2022

Yes, it is correct; it seems that the others are not available.

@yhan219
Copy link
Author

yhan219 commented Jul 15, 2022

Additionally, there's MonthDay which should be formatted as 01-01.

@shalousun shalousun changed the title Java8年月,日期等支持 Java 8 supports years, months, dates, etc. Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants