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

Support flexible multi-unit duration format in @DurationFormat #33262

Closed
bclozel opened this issue Jul 23, 2024 · 0 comments
Closed

Support flexible multi-unit duration format in @DurationFormat #33262

bclozel opened this issue Jul 23, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Jul 23, 2024

#30396 recently introduced support for multiple style of parsing/printing Durations, including the new SIMPLE format ("30m", "2h", "530ms") inspired by Spring Boot.

As discussed in multiple issues (including here), we could also support a multiple-components format such as "1h 30m 13s" quite similar to one of the formats supported by Kotlin. Right now, Spring doesn't support this and instead requires developers to use the "PT1H30M13S" format.

@bclozel bclozel added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Jul 23, 2024
@bclozel bclozel added this to the 6.2.x milestone Jul 23, 2024
@simonbasle simonbasle modified the milestones: 6.2.x, 6.2.0-M7 Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants