File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activesupport-7.0.4.2/ri/Time/to_fs-i.ri
U:RDoc::AnyMethod[iI"
to_fs:ETI"Time#to_fs;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KConverts to a formatted string. See DATE_FORMATS for built-in formats.;To:RDoc::Markup::BlankLine o;
; [I"7This method is aliased to <tt>to_formatted_s</tt>.;T@o:RDoc::Markup::Verbatim; [I"Htime = Time.now # => 2007-01-18 06:10:17 -06:00
;TI"
;TI"5time.to_fs(:time) # => "06:10"
;TI"5time.to_formatted_s(:time) # => "06:10"
;TI"
;TI":time.to_fs(:db) # => "2007-01-18 06:10:17"
;TI"5time.to_fs(:number) # => "20070118061017"
;TI"3time.to_fs(:short) # => "18 Jan 06:10"
;TI"=time.to_fs(:long) # => "January 18, 2007 06:10"
;TI"?time.to_fs(:long_ordinal) # => "January 18th, 2007 06:10"
;TI"Ftime.to_fs(:rfc822) # => "Thu, 18 Jan 2007 06:10:17 -0600"
;TI"@time.to_fs(:iso8601) # => "2007-01-18T06:10:17-06:00"
;T:@format0S:RDoc::Markup::Heading:
leveli: textI",Adding your own time formats to +to_fs+;To;
; [I"BYou can add your own formats to the Time::DATE_FORMATS hash. ;TI"FUse the format name as the hash key and either a strftime string ;TI">or Proc instance that takes a time argument as the value.;T@o;; [I"+# config/initializers/time_formats.rb
;TI"3Time::DATE_FORMATS[:month_and_year] = '%B %Y'
;TI"bTime::DATE_FORMATS[:short_ordinal] = ->(time) { time.strftime("%B #{time.day.ordinalize}") };T;
0:
@fileI"4lib/active_support/core_ext/time/conversions.rb;T:0@omit_headings_from_table_of_contents_below000[[I"to_formatted_s;To;; [ ;@,;0I"(format = :default);T@,FI" Time;TcRDoc::NormalClass00