Converts Date objects to Java long types. Must be timezone UTC.
lib/neo4j/shared/type_converters.rb:6
.convert_type
+ show/hide codedef convert_type Date end
def convert_type Date end
.db_type
+ show/hide codedef db_type Integer end
def db_type Integer end
.to_db
+ show/hide codedef to_db(value) Time.utc(value.year, value.month, value.day).to_i end
def to_db(value) Time.utc(value.year, value.month, value.day).to_i end
.to_ruby
+ show/hide codedef to_ruby(value) Time.at(value).utc.to_date end
def to_ruby(value) Time.at(value).utc.to_date end