diff options
author | Aditya Sanghi <asanghi@me.com> | 2010-10-13 01:39:22 +0530 |
---|---|---|
committer | Aditya Sanghi <asanghi@me.com> | 2010-10-13 01:39:22 +0530 |
commit | a0b53b25b6dc422bf29d2879a8f1a53b9983ac77 (patch) | |
tree | 1c678298bda8ba6a4a8c890c808ca89c637e99a1 /activesupport/lib | |
parent | 21a92b8d01eed34a6b26adb51139f1c40467409e (diff) | |
download | rails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.tar.gz rails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.tar.bz2 rails-a0b53b25b6dc422bf29d2879a8f1a53b9983ac77.zip |
fix time.to_formatted_time(:time) example
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/conversions.rb | 4 |
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" |