How to compare durations?

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

null2021-02-26_10-54-41

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

1 Like