Skip to content

Conversation

@MaxAake
Copy link
Contributor

@MaxAake MaxAake commented May 19, 2025

Simplifies the stringified representation of Durations to display 12 months as a year, and seconds into minutes and hours to align with Cypher behavior as below

RETURN toString(duration({months: 13})) -> "P1Y1M"
RETURN toString(duration({minutes: 61})) -> "PT1H1M"
RETURN toString(duration({seconds: 61})) -> "PT1M1S"

Copy link
Contributor

@StephenCathcart StephenCathcart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MaxAake MaxAake merged commit bee5eff into 6.x May 23, 2025
37 checks passed
@MaxAake MaxAake deleted the duration-string-representation branch May 23, 2025 12:39
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

Successfully merging this pull request may close these issues.

3 participants