Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b435d20adc
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.494 kB
module ByStar
module ByDay
def by_day(*args)
with_by_star_options(*args) do |time, options|
time = ByStar::Normalization.time(time)
between_times(time.beginning_of_day, time.end_of_day, options)
end
end
def today(options={})
by_day(Time.zone.now, options)
end
def yesterday(options={})
by_day(Time.zone.now.yesterday, options)
end
def tomorrow(options={})
by_day(Time.zone.now.tomorrow, options)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.