Sha256: fd66a27c0b43d77e0f0ce4e0b88c6ea809801600f8eb4465eda754d2d4ca9d66
Contents?: true
Size: 1.88 KB
Versions: 12
Compression:
Stored size: 1.88 KB
Contents
o:$YARD::CodeObjects::MethodObject:@scope: instance:@visibility:public: @pathI" Time#sec:EF:@parameters[:@files[[I"time.c;T0:@current_file_has_commentsF: @name:sec:@source_type:c: @tags[:@docstringIC:YARD::Docstring"QReturns the second of the minute (0..60)<em>[Yes, seconds really can range from zero to 60. This allows the system to inject leap seconds every now and then to correct for the fact that years are not really a convenient number of hours long.]</em> for <i>time</i>. t = Time.now #=> 2007-11-19 08:25:02 -0600 t.sec #=> 2;F:@objectIu:YARD::StubProxy Time#sec;F: @summary0:@ref_tags[;[o:YARD::Tags::OverloadTag :@tag_nameI" overload;F: @text0;;:@types0:@signatureI"sec;F;IC;";F;Iu; Time#sec;F;0;[;[o:YARD::Tags::Tag ;I"return;F;I";F;0;[I"Fixnum;F;0: @allI"@return [Fixnum];F;[;Iu; Time#sec;F; I"tReturns the second of the minute (0..60)<em>[Yes, seconds really can range from zero to 60. This allows the system to inject leap seconds every now and then to correct for the fact that years are not really a convenient number of hours long.]</em> for <i>time</i>. t = Time.now #=> 2007-11-19 08:25:02 -0600 t.sec #=> 2 @overload sec @return [Fixnum];F:@namespaceIu; Time;F:@docstring_extra0:@sourceI";/* * call-seq: * time.sec -> fixnum * * Returns the second of the minute (0..60)<em>[Yes, seconds really can * range from zero to 60. This allows the system to inject leap seconds * every now and then to correct for the fact that years are not really * a convenient number of hours long.]</em> for <i>time</i>. * * t = Time.now #=> 2007-11-19 08:25:02 -0600 * t.sec #=> 2 */ static VALUE time_sec(VALUE time) { struct time_object *tobj; GetTimeval(time, tobj); MAKE_TM(time, tobj); return INT2FIX(tobj->vtm.sec); };F
Version data entries
12 entries across 12 versions & 2 rubygems