instance method
<=>
Ruby on Rails 8.0.4
Since v2.2.3Signature
<=>(other)
Use the time in UTC for comparisons.
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 231
def <=>(other)
utc <=> other
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 231
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone