instance method
<=>
Ruby on Rails 5.2.8.1
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 225
def <=>(other)
utc <=> other
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone