Skip to content
instance method

Time#monday?

() -> bool
monday? → true or false

Returns true if self represents a Monday, false otherwise:

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

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

See also #mon #month #min #nsec also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0