method
name
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
name()public
# File activesupport/lib/active_support/time_with_zone.rb, line 44
def self.name
ActiveSupport::Deprecation.warn(<<~EOM)
ActiveSupport::TimeWithZone.name has been deprecated and
from Rails 7.1 will use the default Ruby implementation.
You can set `config.active_support.remove_deprecated_time_with_zone_name = true`
to enable the new behavior now.
EOM
"Time"
end Related methods
- Instance methods
- +
- -
- <=>
- acts_like_time?
- advance
- ago
- as_json
- between?
- blank?
- change
- comparable_time
- dst?
- encode_with
- eql?
- formatted_offset
- freeze
- future?
- getgm
- getlocal
- getutc
- gmt?
- gmt_offset
- gmtime
- gmtoff
- hash
- httpdate
- in
- in_time_zone
- init_with
- inspect
- is_a?
- isdst
- iso8601
- kind_of?
- localtime
- marshal_dump
- marshal_load
- method_missing
- next_day?
- past?
- period
- prev_day?
- respond_to?
- respond_to_missing?
- rfc2822
- rfc3339
- rfc822
- since
- strftime
- time
- to_a
- to_datetime
- to_f
- to_formatted_s
- to_fs
- to_i
- to_r
- to_s
- to_time
- today?
- tomorrow?
- tv_sec
- utc
- utc?
- utc_offset
- xmlschema
- yesterday?
- zone
- Class methods
- name
- new
- Private methods
-
duration_of_variable_length? -
get_period_and_ensure_valid_local_time -
incorporate_utc_offset -
transfer_time_values_to_utc_constructor -
wrap_with_time_zone