Skip to content

duration nog conforming to FEEL specification #19

@rmerkx

Description

@rmerkx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions