# File lib/dm-types/epoch_time.rb, line 23 def typecast(value) case value when ::Time then value when ::Numeric, /\A\d+\z/ then ::Time.at(value.to_i) when ::DateTime then datetime_to_time(value) when ::String then ::Time.parse(value) end end