Class DataMapper::Property::Time
In: lib/dm-core/property/time.rb
Parent: Object

Methods

Included Modules

PassThroughLoadDump Typecast::Time

Public Instance methods

Creates a Time instance from a Hash with keys :year, :month, :day, :hour, :min, :sec

@param [to_mash] value

  value to be typecast

@return [Time]

  Time constructed from hash

@api private

Typecasts an arbitrary value to a Time Handles both Hashes and Time instances.

@param [to_mash, to_s] value

  value to be typecast

@return [Time]

  Time constructed from value

@api private

[Validate]