Skip to content

Unify Duration String Representation With Cypher #1284

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

Merged
merged 4 commits into from
May 23, 2025

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.

2 participants