class Time
Public Instance Methods
during(duration)
click to toggle source
# File lib/time_win/time_ext.rb, line 2 def during duration TimeWin::Window.new self, (self + duration) end
from(time)
click to toggle source
# File lib/time_win/time_ext.rb, line 8 def from time TimeWin::Window.new time.to_time, self end
to(time)
click to toggle source
# File lib/time_win/time_ext.rb, line 5 def to time TimeWin::Window.new self, time.to_time end
Also aliased as: until