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

Add JSR 310 Period and Duration Converters [SPR-13721] #18294

Closed
spring-projects-issues opened this issue Nov 24, 2015 · 1 comment
Closed

Add JSR 310 Period and Duration Converters [SPR-13721] #18294

spring-projects-issues opened this issue Nov 24, 2015 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 24, 2015

Phil Webb opened SPR-13721 and commented

Currently DateTimeConverters includes support for most javax.time types however it doesn't support javax.time.Period and javax.time.Duration. Both offer a parse static helper so it should be relatively easy to add them.


Affects: 4.2.3

Issue Links:

Referenced from: commits d5ca5b7

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Actually, DateTimeConverters just does between-type conversions, not rendering to a String or parsing from a String. So I'd rather do introduce these as PeriodFormatter and DurationFormatter, automatically registered next to our existing InstantFormatter.

Juergen

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

No branches or pull requests

2 participants