method
utc_time
rails latest stable - Class:
Time
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.
utc_time(*args)public
DEPRECATED: Use +Time#utc+ instead.
Wraps class method time_with_datetime_fallback with utc_or_local set to :utc.
# 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 Related methods
- Instance methods
- +
- -
- <=>
- _dump
- _dump_without_zone
- acts_like_time?
- advance
- ago
- all_day
- all_month
- all_quarter
- all_week
- all_year
- as_json
- at_beginning_of_day
- at_beginning_of_hour
- at_beginning_of_minute
- at_end_of_day
- at_end_of_hour
- at_end_of_minute
- at_midnight
- beginning_of_day
- beginning_of_hour
- beginning_of_minute
- change
- compare_with_coercion
- compare_without_coercion
- end_of_day
- end_of_hour
- end_of_minute
- eql?
- eql_with_coercion
- eql_without_coercion
- formatted_offset
- in
- in_time_zone
- midnight
- minus_with_coercion
- minus_with_duration
- minus_without_coercion
- minus_without_duration
- plus_with_duration
- plus_without_duration
- seconds_since_midnight
- seconds_until_end_of_day
- since
- to_default_s
- to_formatted_s
- to_s
- Class methods
- ===
- _load
- _load_without_zone
- at
- at_with_coercion
- at_without_coercion
- current
- days_in_month
- find_zone
- find_zone!
- local_time
- time_with_datetime_fallback
- use_zone
- utc_time
- zone
- zone=