class ZTimeLabelDay
Public Class Methods
end_for_start( t )
click to toggle source
# File lib/z_time_label_day.rb, line 12 def self.end_for_start( t ) (t.end_of_day + 1).beginning_of_day # 0.00001 or whatever end
floor(t)
click to toggle source
t is a TimeWithZone or similar
# File lib/z_time_label_day.rb, line 17 def self.floor(t) t.beginning_of_day end
get_timeblocks(id, t1, t2, inc)
click to toggle source
Calls superclass method
ZTimeLabel::get_timeblocks
# File lib/z_time_label_day.rb, line 4 def self.get_timeblocks(id, t1, t2, inc) (super).each do |b| b.title = b.starttime.strftime "%a, %b %e" b.css_classes = 'ZTimeHeaderDayRow ' end end