Method: TZInfo::TimeOrDateTime#wday

Defined in:
lib/tzinfo/time_or_datetime.rb

#wdayObject

Returns the day of the week (0..6 for Sunday to Saturday).



165
166
167
168
169
170
171
172
173
# File 'lib/tzinfo/time_or_datetime.rb', line 165

def wday
  if @time
    @time.wday
  elsif @datetime
    @datetime.wday
  else
    to_time.wday
  end
end