Time::DayOfWeek
Inherits Enum < Comparable < Value < Object
DayOfWeek represents a day of the week in the Gregorian calendar.
time = Time.local(2016, 2, 15)
time.day_of_week # => Time::DayOfWeek::Monday
Each member is identified by its ordinal number starting from Monday = 1
according to ISO 8601.
#value returns this ordinal number. It can easily be converted to the also
common numbering based on Sunday = 0 using value % 7.