sunday?

time.sunday? â true or false
Instance Public methods

Returns true if time represents Sunday.

1
2
t = Time.local(1990, 4, 1)       #=> 1990-04-01 00:00:00 -0600
t.sunday?                        #=> true
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.