tiagobento commented on issue #977:
URL:
https://github.com/apache/incubator-kie-issues/issues/977#issuecomment-1967100430
From the spec, we have:
> The value of a days and time duration can be expressed as a number of
seconds. E.g., $value_{dtd}$(P1DT1H) = 90000.
The $value_{dtd}$ function is one-to-one and so it has an inverse function
$value_{dtd^{-1}}$. E.g., $value_{dtd^{-1}}$
(90000) = P1DT1H.
and
> The value of a years and months duration can be expressed as a number of
months. E.g., $value_{ymd}$(P1Y1M) = 13.
The $value_{ymd}$ function is one-to-one and so it has an inverse function
$value_{ymd^{-1}}$. E.g., $value_{ymd^{-1}}$
(13) = P1Y1M
but such functions $value_{dtd}$, $value_{ymd}$ and its inverses do not
exist, as far as I can tell. If they did, we could do the conversion to
seconds/months, execute a `sum` then convert back to the desired duration
format.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]