Currently, Duration("P0-1-0T0:0:0"), i.e., a 1-month duration, does not throw an error. Converting this duration to seconds gives some arbitrary number (different every time).
Of course, this is not the intended duration format. However, XIOS does accept durations in this format, so we should be careful when passing these around.
XIOS always sets the number of days in a month to 30, which could cause a lot of confusion. It would be better to just disallow such formats inside Duration.
Currently,
Duration("P0-1-0T0:0:0")
, i.e., a 1-month duration, does not throw an error. Converting this duration to seconds gives some arbitrary number (different every time).Of course, this is not the intended duration format. However, XIOS does accept durations in this format, so we should be careful when passing these around.
XIOS always sets the number of days in a month to 30, which could cause a lot of confusion. It would be better to just disallow such formats inside
Duration
.