APIdock / Ruby on Rails
/
Browse About
method

active_support_local_zone

v7.2.3 - Show latest stable - Class: Time
active_support_local_zone()
private

No documentation available.

# File activesupport/lib/active_support/core_ext/time/compatibility.rb, line 32
    def active_support_local_zone
      @@active_support_local_zone = nil if @@active_support_local_tz != ENV["TZ"]
      @@active_support_local_zone ||=
        begin
          @@active_support_local_tz = ENV["TZ"]
          Time.new.zone
        end
    end

Related methods

  • Instance methods
  • +
  • -
  • <=>
  • acts_like_time?
  • advance
  • ago
  • 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_midday
  • at_middle_of_day
  • at_midnight
  • at_noon
  • beginning_of_day
  • beginning_of_hour
  • beginning_of_minute
  • blank?
  • 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
  • midday
  • middle_of_day
  • midnight
  • minus_with_coercion
  • minus_with_duration
  • minus_without_coercion
  • minus_without_duration
  • next_day
  • next_month
  • next_year
  • noon
  • plus_with_duration
  • plus_without_duration
  • present?
  • preserve_timezone
  • prev_day
  • prev_month
  • prev_year
  • sec_fraction
  • seconds_since_midnight
  • seconds_until_end_of_day
  • since
  • to_formatted_s
  • to_fs
  • to_time
  • Class methods
  • ===
  • at
  • at_with_coercion
  • at_without_coercion
  • current
  • days_in_month
  • days_in_year
  • find_zone
  • find_zone!
  • rfc3339
  • use_zone
  • zone
  • zone=
  • Private methods
  • privateactive_support_local_zone
  • privatesystem_local_time?
APIdock API Documentation Browser

© 2026 APIdock