Add utility to parse Duration from a String #22474
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
It would make sense to have a common utility to parse
java.time.Duration
from aCharSequence
.Examples:
10ms
-> 10 milliseconds10s
-> 10 seconds10m
-> 10 minutes10h
-> 10 hoursChronoUnit
s to support:Spring Boot provides this functionality and we'd like to reuse it in Spring Data.
The text was updated successfully, but these errors were encountered: