-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Not planned
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement
Description
It would make sense to have a common utility to parse java.time.Duration
from a CharSequence
.
Examples:
10ms
-> 10 milliseconds10s
-> 10 seconds10m
-> 10 minutes10h
-> 10 hours
ChronoUnit
s to support:
- Nanos
- Micros
- Millis
- Seconds
- Minutes
- Hours
- Days
Spring Boot provides this functionality and we'd like to reuse it in Spring Data.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by anothertype: enhancementA general enhancementA general enhancement
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
ilyavy commentedon Jan 21, 2020
Relates to #22013
rstoyanchev commentedon Aug 2, 2022
Team Decision: We can do this in fallback mode, trying the built-in
Duration
formatting, and then falling back on alternative formats, in effect extending the built-in one. We should ensure the spec of what Boot supports already, works in the new arrangement.simonbasle commentedon May 16, 2023
linked to #22013 and superseded by gh-30396
Support multiple style of parsing/printing Durations