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/ActiveSupport/Duration/to_i-i.ri
U:RDoc::AnyMethod[iI"	to_i:ETI"!ActiveSupport::Duration#to_i;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"AReturns the number of seconds that this Duration represents.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"1.minute.to_i   # => 60
;TI"1.hour.to_i     # => 3600
;TI" 1.day.to_i      # => 86400
;T:@format0o;
;	[I"@Note that this conversion makes some assumptions about the ;TI"Cduration of some periods, e.g. months are always 1/12 of year ;TI"!and years are 365.2425 days:;T@o;;	[
I"(# equivalent to (1.year / 12).to_i
;TI""1.month.to_i    # => 2629746
;TI"
;TI"(# equivalent to 365.2425.days.to_i
;TI"#1.year.to_i     # => 31556952
;T;
0o;
;	[	I" In such cases, Ruby's core ;TI"FDate[https://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and ;TI"_Time[https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision ;TI"date and time arithmetic.;T:
@fileI"#lib/active_support/duration.rb;T:0@omit_headings_from_table_of_contents_below000[[I"in_seconds;To;;	[;@&;0I"();T@&FI"
Duration;TcRDoc::NormalClass00