aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAditya Sanghi <asanghi@me.com>2010-10-13 01:39:22 +0530
committerAditya Sanghi <asanghi@me.com>2010-10-13 01:39:22 +0530
commita0b53b25b6dc422bf29d2879a8f1a53b9983ac77 (patch)
tree1c678298bda8ba6a4a8c890c808ca89c637e99a1 /activesupport
parent21a92b8d01eed34a6b26adb51139f1c40467409e (diff)
downloadrails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.tar.gz
rails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.tar.bz2
rails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.zip
fix time.to_formatted_time(:time) example
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/time/conversions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/conversions.rb b/activesupport/lib/active_support/core_ext/time/conversions.rb
index 025c619783..d4ae3131ec 100644
--- a/activesupport/lib/active_support/core_ext/time/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -19,8 +19,8 @@ class Time
#
# time = Time.now # => Thu Jan 18 06:10:17 CST 2007
#
- # time.to_formatted_s(:time) # => "06:10:17"
- # time.to_s(:time) # => "06:10:17"
+ # time.to_formatted_s(:time) # => "06:10"
+ # time.to_s(:time) # => "06:10"
#
# time.to_formatted_s(:db) # => "2007-01-18 06:10:17"
# time.to_formatted_s(:number) # => "20070118061017"