Skip to content
Browse files

Include a :number option example inside Time conversions helper.

  • Loading branch information...
1 parent 0cfa357 commit b32a24abc993c44af6123375b15681f141d95891 @miloops miloops committed Jul 17, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/time/conversions.rb
View
1 activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -30,6 +30,7 @@ def self.included(base) #: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"

0 comments on commit b32a24a

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