D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Time
/
Filename :
to_f-i.ri
back
Copy
U:RDoc::AnyMethod[iI" to_f:ETI"Time#to_f;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"3Returns the value of +self+ as a Float number ;TI"3{Epoch seconds}[rdoc-ref:Time@Epoch+Seconds]; ;TI"subseconds are included.;To:RDoc::Markup::BlankLine o; ; [I"%The stored value of +self+ is a ;TI"3{Rational}[rdoc-ref:Rational@#method-i-to_f], ;TI"<which means that the returned value may be approximate:;T@o:RDoc::Markup::Verbatim; [ I"9Time.utc(1970, 1, 1, 0, 0, 0).to_f # => 0.0 ;TI">Time.utc(1970, 1, 1, 0, 0, 0, 999999).to_f # => 0.999999 ;TI"BTime.utc(1950, 1, 1, 0, 0, 0).to_f # => -631152000.0 ;TI"ATime.utc(1990, 1, 1, 0, 0, 0).to_f # => 631152000.0 ;T:@format0o; ; [I"#Related: Time#to_i, Time#to_r.;T: @fileI"time.c;T:0@omit_headings_from_table_of_contents_below0I"to_f -> float ;T0[ I"();T@FI" Time;TcRDoc::NormalClass00