Method: Time#sunday?

Defined in:
time.c

#sunday?Boolean

Returns true if self represents a Sunday, false otherwise:

t = Time.utc(2000, 1, 2) # => 2000-01-02 00:00:00 UTC
t.sunday?                # => true

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

Returns:

  • (Boolean)


4858
4859
4860
4861
4862
# File 'time.c', line 4858

static VALUE
time_sunday(VALUE time)
{
    wday_p(0);
}