class ActiveGraph::Shared::TypeConverters::DateConverter

Converts Java long types to Date objects. Must be timezone UTC.

Public Class Methods

convert_type() click to toggle source
    # File lib/active_graph/shared/type_converters.rb
120 def convert_type
121   Date
122 end
db_type() click to toggle source
    # File lib/active_graph/shared/type_converters.rb
124 def db_type
125   Date
126 end
to_db(value)
Alias for: to_ruby
to_ruby(value) click to toggle source
    # File lib/active_graph/shared/type_converters.rb
128 def to_ruby(value)
129   value.respond_to?(:to_date) ? value.to_date : Time.at(value).utc.to_date
130 end
Also aliased as: to_db