Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duration nog conforming to FEEL specification #19

Open
rmerkx opened this issue Aug 18, 2023 · 1 comment
Open

duration nog conforming to FEEL specification #19

rmerkx opened this issue Aug 18, 2023 · 1 comment

Comments

@rmerkx
Copy link

rmerkx commented Aug 18, 2023

Hi Radec,

Expressions involving calculations with durations is not behaving as expected:

  • date("2023-01-01") + duration("P1M") * 12 results in 12/27/2023 12:00:00 AM instead of 2023-12-01
  • P12M == P1Y but (12 * P1M) != P12M.

The issue seems to be that cardinal periods are converted to timespans before being used in expression involving calculations on durations.

See example attached.

Kind regards,
Radoslaw

@rmerkx
Copy link
Author

rmerkx commented Aug 18, 2023

duration.dmn.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant