HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9/doc/activesupport-6.1.4.1/ri/Time/to_formatted_s-i.ri
U:RDoc::AnyMethod[iI"to_formatted_s:ETI"Time#to_formatted_s;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::BlankLineo;
;	[I"-This method is aliased to <tt>to_s</tt>.;T@o:RDoc::Markup::Verbatim;	[I"Htime = Time.now                    # => 2007-01-18 06:10:17 -06:00
;TI"
;TI"5time.to_formatted_s(:time)         # => "06:10"
;TI"5time.to_s(:time)                   # => "06:10"
;TI"
;TI"Ctime.to_formatted_s(:db)           # => "2007-01-18 06:10:17"
;TI">time.to_formatted_s(:number)       # => "20070118061017"
;TI"<time.to_formatted_s(:short)        # => "18 Jan 06:10"
;TI"Ftime.to_formatted_s(:long)         # => "January 18, 2007 06:10"
;TI"Htime.to_formatted_s(:long_ordinal) # => "January 18th, 2007 06:10"
;TI"Otime.to_formatted_s(:rfc822)       # => "Thu, 18 Jan 2007 06:10:17 -0600"
;TI"Itime.to_formatted_s(:iso8601)      # => "2007-01-18T06:10:17-06:00"
;T:@format0S:RDoc::Markup::Heading:
leveli:	textI"5Adding your own time formats to +to_formatted_s+;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_s;To;;	[;@,;0I"(format = :default);T@,FI"	Time;TcRDoc::NormalClass00