Method: Time#monday?

Defined in:
time.c

#monday?Boolean

Returns true if self represents a Monday, false otherwise:

t = Time.utc(2000, 1, 3) # => 2000-01-03 00:00:00 UTC
t.monday?                # => true

Related: Time#tuesday?, Time#wednesday?, Time#thursday?.

Returns:

  • (Boolean)
[View source]

4876
4877
4878
4879
4880
# File 'time.c', line 4876

static VALUE
time_monday(VALUE time)
{
    wday_p(1);
}