Check your understanding
Lesson Summary
In this lesson, you learned about working with temporal types in Neo4j using the Java driver:
-
Cypher provides classes for handling dates, times, and durations
-
You can pass temporal objects as parameters or create them within Cypher statements
-
When reading temporal values from Neo4j, they are automatically converted to the appropriate Java driver types
-
Durations can be used for date arithmetic in both Java and Cypher
Converting between driver and Cypher types
Because Neo4j was originally built in Java, nearly all of the Cypher data types align with Java’s standard library types. However, there are some exceptions, especially when it comes to temporal types. The main differences are with the timezone values. To see which Java and Cypher mappings are different, see the documentation page in the Java manual.