You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add JSR 310 Period and Duration Converters [SPR-13721] #18294
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.
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.
Activity
spring-projects-issues commentedon Nov 24, 2015
Juergen Hoeller commented
Actually,
DateTimeConvertersjust does between-type conversions, not rendering to a String or parsing from a String. So I'd rather do introduce these asPeriodFormatterandDurationFormatter, automatically registered next to our existingInstantFormatter.Juergen