method

wday

v1_8_7_72 - Show latest stable - Class: Time
wday()
public

Returns an integer representing the day of the week, 0..6, with Sunday == 0.

   t = Time.now   #=> Wed Apr 09 08:56:04 CDT 2003
   t.wday         #=> 3