cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to compare durations?

a1olegs
Node Clone

return duration("PT45M") > duration("PT44M")

null3X_1_5_157d7127df90bb8f916d0ce33e442480d7eca09a.png

1 ACCEPTED SOLUTION

Hi,

the answer to your question can be found on this page: Dates, datetimes, and durations - Developer Guides (neo4j.com).

Start reading under "Table 6" ("And finally filtering durations..."). So the answer is:

return datetime() + duration("PT45M") > datetime() + duration("PT44M")

Regards,
Elena

View solution in original post

1 REPLY 1

Hi,

the answer to your question can be found on this page: Dates, datetimes, and durations - Developer Guides (neo4j.com).

Start reading under "Table 6" ("And finally filtering durations..."). So the answer is:

return datetime() + duration("PT45M") > datetime() + duration("PT44M")

Regards,
Elena