Closed
Description
Joseph Walton opened SPR-13579 and commented
Java 8's java.time.Duration
is a good choice for defining durations of time, and arguably better than using a long
with a property name to specify the units.
It would be good to support conversion from a String
to make it easier to use beans that use this in their API.
Issue Links:
- Add JSR 310 Period and Duration Converters [SPR-13721] #18294 Add JSR 310 Period and Duration Converters ("duplicates")
- Add conversion support for Joda Duration and Period [SPR-6706] #11372 Add conversion support for Joda Duration and Period
- Conversion support for java.time.YearMonth (as well as MonthDay) [SPR-13518] #18095 Conversion support for java.time.YearMonth (as well as MonthDay)