Method: Circa::Time#valid_parts

Defined in:
lib/circa/time.rb

#valid_partsHash

Get the valid parts of the time

Returns:

  • (Hash)

    A hash with keys [:year, :month, :day, :hour, :minute, :second] where each of those keys is valid in the time, and values per the keys



43
44
45
46
# File 'lib/circa/time.rb', line 43

def valid_parts
  time_parts = { hour: @hour, minute: @minute, second: @second }
  @date.valid_parts.merge(time_parts)
end