class ActiveGraph::Shared::TypeConverters::TimeConverter
Public Class Methods
convert_type()
click to toggle source
# File lib/active_graph/shared/type_converters.rb 178 def convert_type 179 Time 180 end
db_type()
click to toggle source
# File lib/active_graph/shared/type_converters.rb 182 def db_type 183 Time 184 end
to_ruby(value)
click to toggle source
# File lib/active_graph/shared/type_converters.rb 186 def to_ruby(value) 187 value.respond_to?(:to_time) ? value.to_time : Time.at(value).utc 188 end
Also aliased as: to_db