neo4j/community — Issue #130: Support for date values
Author: jakewins
Created: 2011-12-14 09:41:52+00:00
State: open
Labels: feature, kernel

Would be cool to support higher level date types than simple longs. I think we'd need two or three types, depending on how you look at it:

datetime - A unix timestamp plus optional timezone metadata, defaults to UTC
time - Time of day plus optional timezone metadata, defaults to UTC
date - Day, month, year. Could be modelled with a datetime, but I think it warrants it's own type

All of these could be modeled with simple long values, but the higher abstraction level does bring benefits. Storage efficiency for one but, more importantly, the ability to do optimized and type safe date operations in Cypher.