HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activesupport-7.0.4.2/ri/DateTime/to_fs-i.ri
U:RDoc::AnyMethod[iI"
to_fs:ETI"DateTime#to_fs;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"RConvert to a formatted string. See Time::DATE_FORMATS for predefined formats.;To:RDoc::Markup::BlankLineo;
;	[I"7This method is aliased to <tt>to_formatted_s</tt>.;T@S:RDoc::Markup::Heading:
leveli:	textI"
Examples;To:RDoc::Markup::Verbatim;	[I"_datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0)   # => Tue, 04 Dec 2007 00:00:00 +0000
;TI"
;TI"?datetime.to_fs(:db)            # => "2007-12-04 00:00:00"
;TI"?datetime.to_formatted_s(:db)   # => "2007-12-04 00:00:00"
;TI":datetime.to_fs(:number)        # => "20071204000000"
;TI"8datetime.to_fs(:short)         # => "04 Dec 00:00"
;TI"Cdatetime.to_fs(:long)          # => "December 04, 2007 00:00"
;TI"Ddatetime.to_fs(:long_ordinal)  # => "December 4th, 2007 00:00"
;TI"Kdatetime.to_fs(:rfc822)        # => "Tue, 04 Dec 2007 00:00:00 +0000"
;TI"Edatetime.to_fs(:iso8601)       # => "2007-12-04T00:00:00+00:00"
;T:@format0S;;
i;I".Adding your own datetime formats to to_fs;To;
;	[	I"HDateTime formats are shared with Time. You can add your own to the ;TI"FTime::DATE_FORMATS hash. Use the format name as the hash key and ;TI"Deither a strftime string or Proc instance that takes a time or ;TI"$datetime argument as the value.;T@o;;	[I"+# config/initializers/time_formats.rb
;TI"3Time::DATE_FORMATS[:month_and_year] = '%B %Y'
;TI"fTime::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") };T;0:
@fileI"9lib/active_support/core_ext/date_time/conversions.rb;T:0@omit_headings_from_table_of_contents_below000[[I"to_formatted_s;To;;	[;@-;0I"(format = :default);T@-FI"
DateTime;TcRDoc::NormalClass00