Method: Time#thursday?

Defined in:
time.c

#thursday?Boolean

Returns true if time represents Thursday.

t = Time.local(1995, 12, 21)     #=> 1995-12-21 00:00:00 -0600
t.thursday?                      #=> true

Returns:

  • (Boolean)
[View source]

4655
4656
4657
4658
4659
# File 'time.c', line 4655

static VALUE
time_thursday(VALUE time)
{
    wday_p(4);
}