class Time

Public Instance Methods

down_to(time)
Alias for: up_to
up_to(time) click to toggle source

Create new time iterator from `self` till specified `time`. Syntax sugar for (where `self` is `start`):

start = Time.new 1970, 1, 1
stop  = Time.new 1970, 2, 1

TimeIterator.new start, stop

@return [TimeIterator]

# File lib/time_iterator/core_ext.rb, line 13
def up_to time
  TimeIterator.new self, time
end
Also aliased as: down_to