Sha256: b1ed1466a9c2903a3fa55dcdcedb568c4f1401b67abc2f514799c24405233a47

Contents?: true

Size: 1.91 KB

Versions: 12

Compression:

Stored size: 1.91 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:
isdst:@docstringIC:YARD::Docstring"Returns <code>true</code> if <i>time</i> occurs during Daylight
Saving Time in its time zone.

   Time.local(2000, 7, 1).isdst   #=> true
   Time.local(2000, 1, 1).isdst   #=> false
   Time.local(2000, 7, 1).dst?    #=> true
   Time.local(2000, 1, 1).dst?    #=> false
:@objectu:YARD::StubProxyTime#isdst:
@summary0:	@all"UReturns <code>true</code> if <i>time</i> occurs during Daylight
Saving Time in its time zone.

   Time.local(2000, 7, 1).isdst   #=> true
   Time.local(2000, 1, 1).isdst   #=> false
   Time.local(2000, 7, 1).dst?    #=> true
   Time.local(2000, 1, 1).dst?    #=> false


@overload isdst
  @return [Boolean]
@overload dst?
  @return [Boolean]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;Time#isdst;;;IC;	"
;
u;Time#isdst;0;
"@return [Boolean];[;[o:YARD::Tags::Tag
;
0;0:@types["Boolean:
@text":@tag_name"return;0:@parameters[;0:@signature"
isdst;"
overloado;
;
u;Time#isdst;:	dst?;IC;	"
;
u;Time#isdst;0;
"@return [Boolean];[;[o;
;
0;0;["Boolean;";"return;0;[;0;"	dst?;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["time.c0:@namespaceu;	Time:
@path"Time#isdst;[:@visibility:public:@source"i/*
 *  call-seq:
 *     time.isdst => true or false
 *     time.dst?  => true or false
 *  
 *  Returns <code>true</code> if <i>time</i> occurs during Daylight
 *  Saving Time in its time zone.
 *     
 *     Time.local(2000, 7, 1).isdst   #=> true
 *     Time.local(2000, 1, 1).isdst   #=> false
 *     Time.local(2000, 7, 1).dst?    #=> true
 *     Time.local(2000, 1, 1).dst?    #=> false
 */

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

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