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

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Time/to_f_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Time/to_f_i.dat