aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2015-09-17 16:52:22 +0100
committerAndrew White <pixeltrix@users.noreply.github.com>2015-09-17 16:52:22 +0100
commitff2a4ca756699b56169f1b595c3d340cb54e9de0 (patch)
tree2291d070d58bc65cc65efdf2124363bb958bd1c8 /activesupport
parentabc86f18b4df3f981935229b003605b9199e09f7 (diff)
parent4818f3e1ae09e52f73be467d5547a3c2627c2131 (diff)
downloadrails-ff2a4ca756699b56169f1b595c3d340cb54e9de0.tar.gz
rails-ff2a4ca756699b56169f1b595c3d340cb54e9de0.tar.bz2
rails-ff2a4ca756699b56169f1b595c3d340cb54e9de0.zip
Merge pull request #21625 from amitsuroliya/improve_docs
Improve Docs of ActiveSupport::TimeZone [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb
index 2699a064d7..c8dbe92171 100644
--- a/activesupport/lib/active_support/values/time_zone.rb
+++ b/activesupport/lib/active_support/values/time_zone.rb
@@ -23,7 +23,7 @@ module ActiveSupport
# config.time_zone = 'Eastern Time (US & Canada)'
# end
#
- # Time.zone # => #<TimeZone:0x514834...>
+ # Time.zone # => #<ActiveSupport::TimeZone:0x514834...>
# Time.zone.name # => "Eastern Time (US & Canada)"
# Time.zone.now # => Sun, 18 May 2008 14:30:44 EDT -04:00
#
@@ -195,7 +195,7 @@ module ActiveSupport
# Assumes self represents an offset from UTC in seconds (as returned from
# Time#utc_offset) and turns this into an +HH:MM formatted string.
#
- # TimeZone.seconds_to_utc_offset(-21_600) # => "-06:00"
+ # ActiveSupport::TimeZone.seconds_to_utc_offset(-21_600) # => "-06:00"
def seconds_to_utc_offset(seconds, colon = true)
format = colon ? UTC_OFFSET_WITH_COLON : UTC_OFFSET_WITHOUT_COLON
sign = (seconds < 0 ? '-' : '+')