End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Time#thursday?
time.thursday? → true or false
time.c
View on GitHub ↗
static VALUE
time_thursday(VALUE time)
{
wday_p(4);
}
Returns true if time represents Thursday.
Example
t = Time.local(1995, 12, 21) #=> 1995-12-21 00:00:00 -0600 t.thursday? #=> true