class Timing::NaturalTimeLanguage::SecondInterval
Public Instance Methods
beginning_of(time)
click to toggle source
# File lib/timing/natural_time_language_interpreters.rb, line 181 def beginning_of(time) raise 'Not supported' end
end_of(time)
click to toggle source
# File lib/timing/natural_time_language_interpreters.rb, line 185 def end_of(time) raise 'Not supported' end
time_after(time, number)
click to toggle source
# File lib/timing/natural_time_language_interpreters.rb, line 177 def time_after(time, number) time + Interval.seconds(number) end
time_ago(time, number)
click to toggle source
# File lib/timing/natural_time_language_interpreters.rb, line 173 def time_ago(time, number) time - Interval.seconds(number) end