ISO-8601 support for Duration #55698
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-core
type-enhancement
A request for a change that isn't a bug
I'm currently missing support for the ISO-8601 standard when it comes to
Duration
.source: https://www.digi.com/resources/documentation/digidocs/90001488-13/reference/r_iso_8601_duration_format.htm
I'd love to see to see a
Duration.parse(String isoDurationString)
method and atoIso8601String()
just likeDateTime
has. This will allow us to easily (de)serialize durations.Some example of this notation:
PT3H30M
: 3 hours and 30 minutesP2W1D
: 2 weeks and 1 dayP1Y10DT3H
: 1 year, 10 days and 1 hourThe text was updated successfully, but these errors were encountered: