Home / Companies / Neo4j / Blog / Post Details
Content Deep Dive

Cypher Sleuthing: Dealing with Dates, Part 3

Blog post from Neo4j

Post Details
Company
Date Published
Author
Jennifer Reif
Word Count
1,820
Language
English
Hacker News Points
-
Summary

Cypher Sleuthing: Dealing with Dates, Part 3 discusses accessing date and time components in Cypher, including temporal instant types and duration values. The post explains how to access specific parts of durations, such as hours, minutes, and weeks, using various functions like `inHours()`, `inMinutesOfHour()`, and `weeks`. It also covers translating duration values to different precisions, converting between units within the same category, and dealing with components in multiple categories. The post provides examples, such as calculating the number of days a blog post has been published or determining the most popular day of the week for orders. Additionally, it highlights the limitations of certain component conversions and offers resources for further learning.