Class: DateTime

Inherits:
Date
  • Object
show all
Includes:
ShiftyWeek
Defined in:
lib/shifty_week/date.rb

Constant Summary

Constants included from ShiftyWeek

ShiftyWeek::WORKER_FORMAT

Instance Attribute Summary

Attributes inherited from Date

#week_day_start

Instance Method Summary collapse

Methods included from ShiftyWeek

#days_in_month, included, #last_week_day, #month_name, #month_names, #step_to_month_end, #wday_offset, #week, #week_day_start, #week_days, #weeks_in_year

Methods inherited from Date

#step, #step_to_date

Instance Method Details

#to_timeObject



24
25
26
# File 'lib/shifty_week/date.rb', line 24

def to_time
  Time.parse(self.strftime("%c -0800"), self)
end