Skip to content
This repository
Browse code

fix time.to_formatted_time(:time) example

  • Loading branch information...
commit a0b53b25b6dc422bf29d2879a8f1a53b9983ac77 1 parent 21a92b8
Aditya Sanghi authored October 13, 2010
4  activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -19,8 +19,8 @@ class Time
19 19
   #
20 20
   #   time = Time.now                     # => Thu Jan 18 06:10:17 CST 2007
21 21
   #
22  
-  #   time.to_formatted_s(:time)          # => "06:10:17"
23  
-  #   time.to_s(:time)                    # => "06:10:17"
  22
+  #   time.to_formatted_s(:time)          # => "06:10"
  23
+  #   time.to_s(:time)                    # => "06:10"
24 24
   #
25 25
   #   time.to_formatted_s(:db)            # => "2007-01-18 06:10:17"
26 26
   #   time.to_formatted_s(:number)        # => "20070118061017"

0 notes on commit a0b53b2

Please sign in to comment.
Something went wrong with that request. Please try again.