diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-01-01 20:28:34 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-01-01 20:28:34 +0530 |
commit | a30eae10e4669dbea2a0aa878105b37cd115b41b (patch) | |
tree | 3073ce5cd2986a36c85fe1c9d6f34f4c31680a7b /activesupport | |
parent | df5c4d65deb90b20dcbe8349ac9eccc248f58f8d (diff) | |
download | rails-a30eae10e4669dbea2a0aa878105b37cd115b41b.tar.gz rails-a30eae10e4669dbea2a0aa878105b37cd115b41b.tar.bz2 rails-a30eae10e4669dbea2a0aa878105b37cd115b41b.zip |
copy edits [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/time_with_zone.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index ec16f52f30..fdaaacf2fe 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -80,7 +80,7 @@ module ActiveSupport end alias_method :getlocal, :localtime - # Returns true if the the current time is within Daylight Savings Time for the + # Returns true if the current time is within Daylight Savings Time for the # specified time zone. # # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' @@ -91,7 +91,7 @@ module ActiveSupport end alias_method :isdst, :dst? - # Returns true if the the current time zone is set to UTC. + # Returns true if the current time zone is set to UTC. # # Time.zone = 'UTC' # => 'UTC' # Time.zone.now.utc? # => true @@ -102,8 +102,7 @@ module ActiveSupport end alias_method :gmt?, :utc? - # Returns a +Fixnum+ of the offset from current time zone to UTC time - # in seconds. + # Returns the offset from current time to UTC time in seconds. def utc_offset period.utc_total_offset end |