Sha256: 2624f963e32b873f620e5a8c6192d2a00537729c15f9d3d7682cdc2b6f4676b1

Contents?: true

Size: 1.54 KB

Versions: 12

Compression:

Stored size: 1.54 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:
month:@docstringIC:YARD::Docstring"šReturns the month of the year (1..12) for <i>time</i>.

   t = Time.now   #=> Wed Apr 09 08:56:03 CDT 2003
   t.mon          #=> 4
   t.month        #=> 4
:@objectu:YARD::StubProxyTime#month:
@summary0:	@all"àReturns the month of the year (1..12) for <i>time</i>.

   t = Time.now   #=> Wed Apr 09 08:56:03 CDT 2003
   t.mon          #=> 4
   t.month        #=> 4


@overload mon
  @return [Fixnum]
@overload month
  @return [Fixnum]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Time#month;:mon;IC;	"
;
u;Time#month;0;
"@return [Fixnum];[;[o:YARD::Tags::Tag
;
0;0:@types["Fixnum:
@text":@tag_name"return;0:@parameters[;0:@signature"mon;"
overloado;
;
u;Time#month;;;IC;	"
;
u;Time#month;0;
"@return [Fixnum];[;[o;
;
0;0;["Fixnum;";"return;0;[;0;"
month;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["time.c0:@namespaceu;	Time:
@path"Time#month;[:@visibility:public:@source"Û/*
 *  call-seq:
 *     time.mon   => fixnum
 *     time.month => fixnum
 *  
 *  Returns the month of the year (1..12) for <i>time</i>.
 *     
 *     t = Time.now   #=> Wed Apr 09 08:56:03 CDT 2003
 *     t.mon          #=> 4
 *     t.month        #=> 4
 */

static VALUE
time_mon(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_mon+1);
}:@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/month_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Time/month_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Time/month_i.dat