class method
self.utc_time
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.0.13Signature
self.utc_time(*args)
DEPRECATED: Use +Time#utc+ instead.
Wraps class method time_with_datetime_fallback with utc_or_local set to :utc.
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 51
def utc_time(*args)
ActiveSupport::Deprecation.warn 'utc_time is deprecated. Use Time#utc instead', caller
time_with_datetime_fallback(:utc, *args)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time