Skip to content
instance method

Time#wednesday?

() -> bool
wednesday? → true or false

Returns true if self represents a Wednesday, false otherwise:

Example
t = Time.utc(2000, 1, 5) # => 2000-01-05 00:00:00 UTC
t.wednesday?             # => true

Related: Time#thursday?, Time#friday?, Time#saturday?.

See also #wday #xmlschema #utc_offset #yday also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0