Company
Date Published
Author
Jennifer Reif
Word count
1879
Language
English
Hacker News points
None

Summary

Cypher Sleuthing: Dealing with Dates Part 2 discusses truncating dates in Cypher, a query language used for graph databases like Neo4j. Truncation allows users to set default values for smaller time units when creating temporal instant values. This can be helpful for generalizing searches or calculating durations between two dates. The article also covers using durations, which measure the amount of time between two temporal instants, and provides examples of how to add or subtract durations from dates, calculate the difference between two dates, and set duration as frequency for medicine dosage. Additionally, it touches on duration precision, conversion of hour and minute values into seconds, and calculating specific dates and times as durations. The article concludes by highlighting the importance of calculating differences between two dates using `duration.between` and invites readers to explore more Cypher features in future posts.