diff options
author | miloops <miloops@gmail.com> | 2008-07-17 11:34:04 -0300 |
---|---|---|
committer | miloops <miloops@gmail.com> | 2008-07-17 11:34:04 -0300 |
commit | b32a24abc993c44af6123375b15681f141d95891 (patch) | |
tree | 3dffb87ed6081bda4f01b0f72cdb90b4a2964ab0 | |
parent | 0cfa3574d599f3bc134cd13fa00d8f22809dd67b (diff) | |
download | rails-b32a24abc993c44af6123375b15681f141d95891.tar.gz rails-b32a24abc993c44af6123375b15681f141d95891.tar.bz2 rails-b32a24abc993c44af6123375b15681f141d95891.zip |
Include a :number option example inside Time conversions helper.
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/conversions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/conversions.rb b/activesupport/lib/active_support/core_ext/time/conversions.rb index 9054008309..f67bfabcc0 100644 --- a/activesupport/lib/active_support/core_ext/time/conversions.rb +++ b/activesupport/lib/active_support/core_ext/time/conversions.rb @@ -30,6 +30,7 @@ module ActiveSupport #:nodoc: # time.to_s(:time) # => "06:10:17" # # time.to_formatted_s(:db) # => "2007-01-18 06:10:17" + # time.to_formatted_s(:number) # => "20070118061017" # time.to_formatted_s(:short) # => "18 Jan 06:10" # time.to_formatted_s(:long) # => "January 18, 2007 06:10" # time.to_formatted_s(:long_ordinal) # => "January 18th, 2007 06:10" |