Skip to content
instance method

Time#friday?

() -> bool
friday? → true or false

Returns true if self represents a Friday, false otherwise:

Example
t = Time.utc(2000, 1, 7) # => 2000-01-07 00:00:00 UTC
t.friday?                # => true

Related: Time#saturday?, Time#sunday?, Time#monday?.

See also #floor #getgm #eql? #getlocal also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0