Sha256: 337328f0fe13a2694052013c105a2a9e851f9ae19610e5c43e90e9315d145506
Contents?: true
Size: 1.39 KB
Versions: 12
Compression:
Stored size: 1.39 KB
Contents
o:$YARD::CodeObjects::MethodObject: @name: to_f:@docstringIC:YARD::Docstring"�Returns the value of <i>time</i> as a floating point number of seconds since epoch. t = Time.now "%10.5f" % t.to_f #=> "1049896564.13654" t.to_i #=> 1049896564 :@objectu:YARD::StubProxyTime#to_f: @summary0: @all"�Returns the value of <i>time</i> as a floating point number of seconds since epoch. t = Time.now "%10.5f" % t.to_f #=> "1049896564.13654" t.to_i #=> 1049896564 @overload to_f @return [Float]:@ref_tags[: @tags[o:YARD::Tags::OverloadTag ; u;Time#to_f;;;IC; " ; u;Time#to_f;0; "@return [Float];[;[o:YARD::Tags::Tag ; 0;0:@types[" Float: @text":@tag_name"return;0:@parameters[;0:@signature" to_f;" overload:@current_file_has_commentsF:@scope: instance;[:@docstring_extra0:@files[["time.c0:@namespaceu; Time: @path"Time#to_f;[:@visibility:public:@source"�/* * call-seq: * time.to_f => float * * Returns the value of <i>time</i> as a floating point number of * seconds since epoch. * * t = Time.now * "%10.5f" % t.to_f #=> "1049896564.13654" * t.to_i #=> 1049896564 */ static VALUE time_to_f(time) VALUE time; { struct time_object *tobj; GetTimeval(time, tobj); return rb_float_new((double)tobj->tv.tv_sec+(double)tobj->tv.tv_usec/1e6); }:@source_type:c
Version data entries
12 entries across 12 versions & 2 rubygems