Sha256: d1f168594afd9db8e914ffdebe8e2a55e4295708f34c54981c8e5ec530d74ec5

Contents?: true

Size: 1.87 KB

Versions: 12

Compression:

Stored size: 1.87 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:sec:@docstringIC:YARD::Docstring"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   #=> Wed Apr 09 08:56:04 CDT 2003
   t.sec          #=> 4
:@objectu:YARD::StubProxy
Time#sec:
@summary0:	@all"wReturns 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   #=> Wed Apr 09 08:56:04 CDT 2003
   t.sec          #=> 4


@overload sec
  @return [Fixnum]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;
Time#sec;;;IC;	"
;
u;
Time#sec;0;
"@return [Fixnum];[;[o:YARD::Tags::Tag
;
0;0:@types["Fixnum:
@text":@tag_name"return;0:@parameters[;0:@signature"sec;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["time.c0:@namespaceu;	Time:
@path"
Time#sec;[:@visibility:public:@source"}/*
 *  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   #=> Wed Apr 09 08:56:04 CDT 2003
 *     t.sec          #=> 4
 */

static VALUE
time_sec(time)
    VALUE time;
{
    struct time_object *tobj;

    GetTimeval(time, tobj);
    if (tobj->tm_got == 0) {
    time_get_tm(time, tobj->gmt);
    }
    return INT2FIX(tobj->tm.tm_sec);
}:@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/sec_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Time/sec_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Time/sec_i.dat