ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- PK] wnum0-i.rinu[U:RDoc::AnyMethod[iI" wnum0:ETI"Date#wnum0;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]<([ cweek-i.rinu[U:RDoc::AnyMethod[iI" cweek:ETI"Date#cweek;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Returns the calendar week number (1-53).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).cweek #=> 5;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.cweek -> fixnum ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]B strptime-c.rinu[U:RDoc::AnyMethod[iI" strptime:ETI"Date::strptime;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"EParses the given representation of date and time with the given ;TI"Etemplate, and creates a date object. strptime does not support ;TI"6specification of flags and width unlike strftime.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"KDate.strptime('2001-02-03', '%Y-%m-%d') #=> # ;TI"KDate.strptime('03-02-2001', '%d-%m-%Y') #=> # ;TI"KDate.strptime('2001-034', '%Y-%j') #=> # ;TI"KDate.strptime('2001-W05-6', '%G-W%V-%u') #=> # ;TI"KDate.strptime('2001 04 6', '%Y %U %w') #=> # ;TI"KDate.strptime('2001 05 6', '%Y %W %u') #=> # ;TI"KDate.strptime('sat3feb01', '%a%d%b%y') #=> # ;T: @format0o; ; [I"(See also strptime(3) and #strftime.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"YDate.strptime([string='-4712-01-01'[, format='%F'[, start=Date::ITALY]]]) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Date;TcRDoc::NormalClass00PK]S wday-i.rinu[U:RDoc::AnyMethod[iI" wday:ETI"Date#wday;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"3Returns the day of week (0-6, Sunday is zero).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).wday #=> 6;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.wday -> fixnum ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]`prKKfriday%3f-i.rinu[U:RDoc::AnyMethod[iI" friday?:ETI"Date#friday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(Returns true if the date is Friday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.friday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]ŋ mday-i.rinu[U:RDoc::AnyMethod[iI" mday:ETI"Date#mday;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Returns the day of the month (1-31).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).mday #=> 3;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"+d.mday -> fixnum d.day -> fixnum ;T0[[I"day;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK][mR cwyear-i.rinu[U:RDoc::AnyMethod[iI" cwyear:ETI"Date#cwyear;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Returns the calendar week based year.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.new(2001,2,3).cwyear #=> 2001 ;TI"/Date.new(2000,1,1).cwyear #=> 1999;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.cwyear -> integer ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]8 fill-i.rinu[U:RDoc::AnyMethod[iI" fill:ETI"Date#fill;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]sμPPxmlschema-i.rinu[U:RDoc::AnyMethod[iI"xmlschema:ETI"Date#xmlschema;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"1This method is equivalent to strftime('%F').;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI" iso8601;TPK]7tQQmjd-i.rinu[U:RDoc::AnyMethod[iI"mjd:ETI" Date#mjd;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FReturns the modified Julian day number. This is a whole number, ;TI"7which is adjusted by the offset as the local time.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"9DateTime.new(2001,2,3,4,5,6,'+7').mjd #=> 51943 ;TI"8DateTime.new(2001,2,3,4,5,6,'-7').mjd #=> 51943;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.mjd -> integer ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]c)ޠtest_ordinal-c.rinu[U:RDoc::AnyMethod[iI"test_ordinal:ETI"Date::test_ordinal;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]wqqgregorian_leap%3f-c.rinu[U:RDoc::AnyMethod[iI"gregorian_leap?:ETI"Date::gregorian_leap?;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"DReturns true if the given year is a leap year of the proleptic ;TI"Gregorian calendar.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"1Date.gregorian_leap?(1900) #=> false ;TI"/Date.gregorian_leap?(2000) #=> true;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"ODate.gregorian_leap?(year) -> bool Date.leap?(year) -> bool ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]dQQ_jisx0301-c.rinu[U:RDoc::AnyMethod[iI"_jisx0301:ETI"Date::_jisx0301;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"2Date._jisx0301(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]P\\ next_day-i.rinu[U:RDoc::AnyMethod[iI" next_day:ETI"Date#next_day;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(This method is equivalent to d + n.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"!d.next_day([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]؃b55 to_date-i.rinu[U:RDoc::AnyMethod[iI" to_date:ETI"Date#to_date;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Returns self.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.to_date -> self ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]k0valid_jd%3f-c.rinu[U:RDoc::AnyMethod[iI"valid_jd?:ETI"Date::valid_jd?;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I" true ;T: @format0o; ; [I"See also ::jd.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"7Date.valid_jd?(jd[, start=Date::ITALY]) -> bool ;T0[I"(p1, p2 = v2);T@FI" Date;TcRDoc::NormalClass00PK]\UU inspect-i.rinu[U:RDoc::AnyMethod[iI" inspect:ETI"Date#inspect;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"2Returns the value as a string for inspection.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I" Date.new(2001,2,3).inspect ;TI") #=> "#" ;TI"/DateTime.new(2001,2,3,4,5,6,'-7').inspect ;TI"; #=> "#";T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.inspect -> string ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]Tkw44xmlschema-c.rinu[U:RDoc::AnyMethod[iI"xmlschema:ETI"Date::xmlschema;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"%some typical XML Schema formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"CDate.xmlschema('2001-02-03') #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"UDate.xmlschema(string='-4712-01-01'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK]=Boo amjd-i.rinu[U:RDoc::AnyMethod[iI" amjd:ETI"Date#amjd;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns the astronomical modified Julian day number. This is ;TI">a fractional number, which is not adjusted by the offset.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"DDateTime.new(2001,2,3,4,5,6,'+7').amjd #=> (249325817/4800) ;TI"CDateTime.new(2001,2,2,14,5,6,'-7').amjd #=> (249325817/4800);T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.amjd -> rational ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]NN _rfc3339-c.rinu[U:RDoc::AnyMethod[iI" _rfc3339:ETI"Date::_rfc3339;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"1Date._rfc3339(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK](-ftest_weeknum-c.rinu[U:RDoc::AnyMethod[iI"test_weeknum:ETI"Date::test_weeknum;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]C step-i.rinu[U:RDoc::AnyMethod[iI" step:ETI"Date#step;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HIterates evaluation of the given block, which takes a date object. ;TI"'The limit should be a date object.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"JDate.new(2001).step(Date.new(2001,-1,-1)).select{|d| d.sunday?}.size ;TI"% #=> 52;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"gd.step(limit[, step=1]) -> enumerator d.step(limit[, step=1]){|date| ...} -> self ;T0[I"(p1, p2 = v2);T@FI" Date;TcRDoc::NormalClass00PK]hnext_year-i.rinu[U:RDoc::AnyMethod[iI"next_year:ETI"Date#next_year;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"0This method is equivalent to d >> (n * 12).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"CDate.new(2001,2,3).next_year #=> # ;TI"CDate.new(2008,2,29).next_year #=> # ;TI"CDate.new(2008,2,29).next_year(4) #=> # ;T: @format0o; ; [I"See also Date#>>.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I""d.next_year([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]Xh2json_create-c.rinu[U:RDoc::AnyMethod[iI"json_create:ETI"Date::json_create;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JDeserializes JSON string by converting Julian year y, month ;TI"Om, day d and Day of Calendar Reform sg to Date.;T: @fileI""ext/json/lib/json/add/date.rb;T:0@omit_headings_from_table_of_contents_below000[I" (object);T@FI" Date;TcRDoc::NormalClass00PK]|ZZ julian-i.rinu[U:RDoc::AnyMethod[iI" julian:ETI"Date#julian;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I":This method is equivalent to new_start(Date::JULIAN).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.julian -> date ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]VV italy-i.rinu[U:RDoc::AnyMethod[iI" italy:ETI"Date#italy;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"9This method is equivalent to new_start(Date::ITALY).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.italy -> date ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]7jT jisx0301-i.rinu[U:RDoc::AnyMethod[iI" jisx0301:ETI"Date#jisx0301;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Returns a string in a JIS X 0301 format.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"6Date.new(2001,2,3).jisx0301 #=> "H13.02.03";T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.jisx0301 -> string ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK] 0 rfc822-c.rinu[U:RDoc::AnyMethod[iI" rfc822:ETI"Date::rfc822;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical RFC 2822 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"4Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000') ;TI"K #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Date.rfc2822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=Date::ITALY], limit: 128) -> date Date.rfc822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK]7:julian%3f-i.rinu[U:RDoc::AnyMethod[iI" julian?:ETI"Date#julian?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CReturns true if the date is before the day of calendar reform.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"8Date.new(1582,10,15).julian? #=> false ;TI"6(Date.new(1582,10,15) - 1).julian? #=> true;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.julian? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]r year-i.rinu[U:RDoc::AnyMethod[iI" year:ETI"Date#year;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Returns the year.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.new(2001,2,3).year #=> 2001 ;TI",(Date.new(1,1,1) - 1).year #=> 0;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.year -> integer ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]%"IIjd-i.rinu[U:RDoc::AnyMethod[iI"jd:ETI" Date#jd;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FReturns the Julian day number. This is a whole number, which is ;TI".adjusted by the offset as the local time.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I";DateTime.new(2001,2,3,4,5,6,'+7').jd #=> 2451944 ;TI":DateTime.new(2001,2,3,4,5,6,'-7').jd #=> 2451944;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.jd -> integer ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]I leap%3f-i.rinu[U:RDoc::AnyMethod[iI" leap?:ETI"Date#leap?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"-Returns true if the year is a leap year.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"(Date.new(2000).leap? #=> true ;TI"(Date.new(2001).leap? #=> false;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.leap? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]%%7 new%21-c.rinu[U:RDoc::AnyMethod[iI" new!:ETI"Date::new!;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1 = v1, p2 = v2, p3 = v3);T@ FI" Date;TcRDoc::NormalClass00PK]@qq ordinal-c.rinu[U:RDoc::AnyMethod[iI" ordinal:ETI"Date::ordinal;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I";Creates a date object denoting the given ordinal date.;To:RDoc::Markup::BlankLineo; ; [I"EThe day of year should be a negative or a positive number (as a ;TI"Irelative day from the end of year when negative). It should not be ;TI" zero.;T@o:RDoc::Markup::Verbatim; [I";Date.ordinal(2001) #=> # ;TI";Date.ordinal(2001,34) #=> # ;TI";Date.ordinal(2001,-1) #=> # ;T: @format0o; ; [I"See also ::jd and ::new.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"IDate.ordinal([year=-4712[, yday=1[, start=Date::ITALY]]]) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = v3);T@FI" Date;TcRDoc::NormalClass00PK]P<new-c.rinu[U:RDoc::AnyMethod[iI"new:ETI"Date::new;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I")(p1 = v1, p2 = v2, p3 = v3, p4 = v4);T@ FI" Date;TcRDoc::NormalClass00PK]FError/cdesc-Error.rinu[U:RDoc::NormalClass[iI" Error:ETI"Date::Error;TI" ArgError;To:RDoc::Markup::Document: @parts[o;;[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0; 0; 0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[; [[; [[; [[[U:RDoc::Context::Section[i0o;;[; 0; 0[I"ext/date/date_core.c;TI" Date;TcRDoc::NormalClassPK]\^^ parse-c.rinu[U:RDoc::AnyMethod[iI" parse:ETI"Date::parse;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"EParses the given representation of date and time, and creates a ;TI"date object.;To:RDoc::Markup::BlankLineo; ; [ I"CThis method *does not* function as a validator. If the input ;TI"Istring does not match valid formats strictly, you may get a cryptic ;TI"Eresult. Should consider to use `Date.strptime` instead of this ;TI"method as possible.;T@o; ; [I"IIf the optional second argument is true and the detected year is in ;TI"Ithe range "00" to "99", considers the year a 2-digit form and makes ;TI" it full.;T@o:RDoc::Markup::Verbatim; [I"CDate.parse('2001-02-03') #=> # ;TI"CDate.parse('20010203') #=> # ;TI"CDate.parse('3rd Feb 2001') #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"^Date.parse(string='-4712-01-01'[, comp=true[, start=Date::ITALY]], limit: 128) -> date ;T0[I")(p1 = v1, p2 = v2, p3 = v3, p4 = {});T@%FI" Date;TcRDoc::NormalClass00PK]BGG weeknum-c.rinu[U:RDoc::AnyMethod[iI" weeknum:ETI"Date::weeknum;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"2(p1 = v1, p2 = v2, p3 = v3, p4 = v4, p5 = v5);T@ FI" Date;TcRDoc::NormalClass00PK]u asctime-i.rinu[U:RDoc::AnyMethod[iI" asctime:ETI"Date#asctime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FReturns a string in asctime(3) format (but without "\n\0" at the ;TI"8end). This method is equivalent to strftime('%c').;To:RDoc::Markup::BlankLineo; ; [I"%See also asctime(3) or ctime(3).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"1d.asctime -> string d.ctime -> string ;T0[[I" ctime;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK]lqinspect_raw-i.rinu[U:RDoc::AnyMethod[iI"inspect_raw:ETI"Date#inspect_raw;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]cTT_xmlschema-c.rinu[U:RDoc::AnyMethod[iI"_xmlschema:ETI"Date::_xmlschema;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"3Date._xmlschema(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]/X\\ rfc3339-i.rinu[U:RDoc::AnyMethod[iI" rfc3339:ETI"Date#rfc3339;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"7This method is equivalent to strftime('%FT%T%:z').;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.rfc3339 -> string ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]f[J cwday-i.rinu[U:RDoc::AnyMethod[iI" cwday:ETI"Date#cwday;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"9Returns the day of calendar week (1-7, Monday is 1).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).cwday #=> 6;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.cwday -> fixnum ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]" ~~ %3e%3e-i.rinu[U:RDoc::AnyMethod[iI">>:ETI" Date#>>;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Returns a date object pointing +n+ months after self. ;TI"0The argument +n+ should be a numeric value.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"=Date.new(2001,2,3) >> 1 #=> # ;TI"=Date.new(2001,2,3) >> -2 #=> # ;T: @format0o; ; [I"CWhen the same day does not exist for the corresponding month, ;TI"/the last day of the month is used instead:;T@o; ; [I"> 1 #=> # ;TI"> 1 #=> # ;T; 0o; ; [I"GThis also results in the following, possibly unexpected, behavior:;T@o; ; [ I"BDate.new(2001,1,31) >> 2 #=> # ;TI"BDate.new(2001,1,31) >> 1 >> 1 #=> # ;TI" ;TI"ADate.new(2001,1,31) >> 1 >> -1 #=> #;T; 0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d >> n -> date ;T0[I" (p1);T@%FI" Date;TcRDoc::NormalClass00PK] Dvalid_commercial%3f-c.rinu[U:RDoc::AnyMethod[iI"valid_commercial?:ETI"Date::valid_commercial?;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"DReturns true if the given week date is valid, and false if not.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.valid_commercial?(2001,5,6) #=> true ;TI"1Date.valid_commercial?(2001,5,8) #=> false ;T: @format0o; ; [I"$See also ::jd and ::commercial.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"QDate.valid_commercial?(cwyear, cweek, cwday[, start=Date::ITALY]) -> bool ;T0[I"(p1, p2, p3, p4 = v4);T@FI" Date;TcRDoc::NormalClass00PK]#KKsunday%3f-i.rinu[U:RDoc::AnyMethod[iI" sunday?:ETI"Date#sunday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(Returns true if the date is Sunday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.sunday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]U=ddto_datetime-i.rinu[U:RDoc::AnyMethod[iI"to_datetime:ETI"Date#to_datetime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"2Returns a DateTime object which denotes self.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I" d.to_datetime -> datetime ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]K;'%'% strftime-i.rinu[U:RDoc::AnyMethod[iI" strftime:ETI"Date#strftime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"BFormats date according to the directives in the given format ;TI" string. ;TI"8The directives begin with a percent (%) character. ;TI"FAny text not listed as a directive will be passed through to the ;TI"output string.;To:RDoc::Markup::BlankLineo; ; [ I"6A directive consists of a percent (%) character, ;TI":zero or more flags, an optional minimum field width, ;TI"6an optional modifier, and a conversion specifier ;TI"as follows.;T@o:RDoc::Markup::Verbatim; [I"+% ;T: @format0o; ; [I" Flags:;To; ; [ I"&- don't pad a numerical output. ;TI" _ use spaces for padding. ;TI"0 use zeros for padding. ;TI""^ upcase the result string. ;TI"# change case. ;T; 0o; ; [I"9The minimum field width specifies the minimum width.;T@o; ; [I"6The modifiers are "E", "O", ":", "::" and ":::". ;TI"="E" and "O" are ignored. No effect to result currently.;T@o; ; [I"Format directives:;T@o; ; [_I"Date (Year, Month, Day): ;TI"C %Y - Year with century (can be negative, 4 digits at least) ;TI"4 -0001, 0000, 1995, 2009, 14292, etc. ;TI"1 %C - year / 100 (round down. 20 in 2009) ;TI" %y - year % 100 (00..99) ;TI" ;TI"4 %m - Month of the year, zero-padded (01..12) ;TI"* %_m blank-padded ( 1..12) ;TI"& %-m no-padded (1..12) ;TI". %B - The full month name (``January'') ;TI"- %^B uppercased (``JANUARY'') ;TI"1 %b - The abbreviated month name (``Jan'') ;TI") %^b uppercased (``JAN'') ;TI" %h - Equivalent to %b ;TI" ;TI"3 %d - Day of the month, zero-padded (01..31) ;TI"& %-d no-padded (1..31) ;TI"4 %e - Day of the month, blank-padded ( 1..31) ;TI" ;TI"' %j - Day of the year (001..366) ;TI" ;TI"-Time (Hour, Minute, Second, Subsecond): ;TI"A %H - Hour of the day, 24-hour clock, zero-padded (00..23) ;TI"B %k - Hour of the day, 24-hour clock, blank-padded ( 0..23) ;TI"A %I - Hour of the day, 12-hour clock, zero-padded (01..12) ;TI"B %l - Hour of the day, 12-hour clock, blank-padded ( 1..12) ;TI"= %P - Meridian indicator, lowercase (``am'' or ``pm'') ;TI"= %p - Meridian indicator, uppercase (``AM'' or ``PM'') ;TI" ;TI"( %M - Minute of the hour (00..59) ;TI" ;TI"* %S - Second of the minute (00..60) ;TI" ;TI"1 %L - Millisecond of the second (000..999) ;TI"H %N - Fractional seconds digits, default is 9 digits (nanosecond) ;TI"J %3N millisecond (3 digits) %15N femtosecond (15 digits) ;TI"J %6N microsecond (6 digits) %18N attosecond (18 digits) ;TI"J %9N nanosecond (9 digits) %21N zeptosecond (21 digits) ;TI"J %12N picosecond (12 digits) %24N yoctosecond (24 digits) ;TI" ;TI"Time zone: ;TI"F %z - Time zone as hour and minute offset from UTC (e.g. +0900) ;TI"P %:z - hour and minute offset from UTC with a colon (e.g. +09:00) ;TI"O %::z - hour, minute and second offset from UTC (e.g. +09:00:00) ;TI"? %:::z - hour, minute and second offset from UTC ;TI"O (e.g. +09, +09:30, +09:30:30) ;TI", %Z - Equivalent to %:z (e.g. +09:00) ;TI" ;TI"Weekday: ;TI"/ %A - The full weekday name (``Sunday'') ;TI", %^A uppercased (``SUNDAY'') ;TI"+ %a - The abbreviated name (``Sun'') ;TI") %^a uppercased (``SUN'') ;TI"0 %u - Day of the week (Monday is 1, 1..7) ;TI"0 %w - Day of the week (Sunday is 0, 0..6) ;TI" ;TI"/ISO 8601 week-based year and week number: ;TI"FThe week 1 of YYYY starts with a Monday and includes YYYY-01-04. ;TI"HThe days in the year before the first week are in the last week of ;TI"the previous year. ;TI" %G - The week-based year ;TI"> %g - The last 2 digits of the week-based year (00..99) ;TI"8 %V - Week number of the week-based year (01..53) ;TI" ;TI"Week number: ;TI"HThe week 1 of YYYY starts with a Sunday or Monday (according to %U ;TI"Hor %W). The days in the year before the first week are in week 0. ;TI"M %U - Week number of the year. The week starts with Sunday. (00..53) ;TI"M %W - Week number of the year. The week starts with Monday. (00..53) ;TI" ;TI"#Seconds since the Unix Epoch: ;TI"= %s - Number of seconds since 1970-01-01 00:00:00 UTC. ;TI"B %Q - Number of milliseconds since 1970-01-01 00:00:00 UTC. ;TI" ;TI"Literal string: ;TI"# %n - Newline character (\n) ;TI" %t - Tab character (\t) ;TI"$ %% - Literal ``%'' character ;TI" ;TI"Combination: ;TI"+ %c - date and time (%a %b %e %T %Y) ;TI" %D - Date (%m/%d/%y) ;TI"0 %F - The ISO 8601 date format (%Y-%m-%d) ;TI"! %v - VMS date (%e-%^b-%Y) ;TI" %x - Same as %D ;TI" %X - Same as %T ;TI"' %r - 12-hour time (%I:%M:%S %p) ;TI"! %R - 24-hour time (%H:%M) ;TI"$ %T - 24-hour time (%H:%M:%S) ;TI". %+ - date(1) (%a %b %e %H:%M:%S %Z %Y) ;T; 0o; ; [I"HThis method is similar to the strftime() function defined in ISO C ;TI"and POSIX. ;TI"NSeveral directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z) ;TI"+are locale dependent in the function. ;TI"1However, this method is locale independent. ;TI"OSo, the result may differ even if the same format string is used in other ;TI"systems such as C. ;TI"LIt is good practice to avoid %x and %X because there are corresponding ;TI"3locale independent representations, %D and %T.;T@o; ; [I"Examples:;T@o; ; [ I"3d = DateTime.new(2007,11,19,8,37,48,"-06:00") ;TI"M #=> # ;TI"Ed.strftime("Printed on %m/%d/%Y") #=> "Printed on 11/19/2007" ;TI":d.strftime("at %I:%M%p") #=> "at 08:37AM" ;T; 0o; ; [I"Various ISO 8601 formats:;To; ; ['I"I%Y%m%d => 20071119 Calendar date (basic) ;TI"L%F => 2007-11-19 Calendar date (extended) ;TI"c%Y-%m => 2007-11 Calendar date, reduced accuracy, specific month ;TI"b%Y => 2007 Calendar date, reduced accuracy, specific year ;TI"e%C => 20 Calendar date, reduced accuracy, specific century ;TI"H%Y%j => 2007323 Ordinal date (basic) ;TI"K%Y-%j => 2007-323 Ordinal date (extended) ;TI"E%GW%V%u => 2007W471 Week date (basic) ;TI"H%G-W%V-%u => 2007-W47-1 Week date (extended) ;TI"f%GW%V => 2007W47 Week date, reduced accuracy, specific week (basic) ;TI"i%G-W%V => 2007-W47 Week date, reduced accuracy, specific week (extended) ;TI"F%H%M%S => 083748 Local time (basic) ;TI"I%T => 08:37:48 Local time (extended) ;TI"i%H%M => 0837 Local time, reduced accuracy, specific minute (basic) ;TI"l%H:%M => 08:37 Local time, reduced accuracy, specific minute (extended) ;TI"_%H => 08 Local time, reduced accuracy, specific hour ;TI"s%H%M%S,%L => 083748,000 Local time with decimal fraction, comma as decimal sign (basic) ;TI"v%T,%L => 08:37:48,000 Local time with decimal fraction, comma as decimal sign (extended) ;TI"w%H%M%S.%L => 083748.000 Local time with decimal fraction, full stop as decimal sign (basic) ;TI"z%T.%L => 08:37:48.000 Local time with decimal fraction, full stop as decimal sign (extended) ;TI"b%H%M%S%z => 083748-0600 Local time and the difference from UTC (basic) ;TI"e%T%:z => 08:37:48-06:00 Local time and the difference from UTC (extended) ;TI"b%Y%m%dT%H%M%S%z => 20071119T083748-0600 Date and time of day for calendar date (basic) ;TI"e%FT%T%:z => 2007-11-19T08:37:48-06:00 Date and time of day for calendar date (extended) ;TI"a%Y%jT%H%M%S%z => 2007323T083748-0600 Date and time of day for ordinal date (basic) ;TI"d%Y-%jT%T%:z => 2007-323T08:37:48-06:00 Date and time of day for ordinal date (extended) ;TI"^%GW%V%uT%H%M%S%z => 2007W471T083748-0600 Date and time of day for week date (basic) ;TI"a%G-W%V-%uT%T%:z => 2007-W47-1T08:37:48-06:00 Date and time of day for week date (extended) ;TI"X%Y%m%dT%H%M => 20071119T0837 Calendar date and local time (basic) ;TI"[%FT%R => 2007-11-19T08:37 Calendar date and local time (extended) ;TI"W%Y%jT%H%MZ => 2007323T0837Z Ordinal date and UTC of day (basic) ;TI"Z%Y-%jT%RZ => 2007-323T08:37Z Ordinal date and UTC of day (extended) ;TI"l%GW%V%uT%H%M%z => 2007W471T0837-0600 Week date and local time and difference from UTC (basic) ;TI"o%G-W%V-%uT%R%:z => 2007-W47-1T08:37-06:00 Week date and local time and difference from UTC (extended) ;T; 0o; ; [I")See also strftime(3) and ::strptime.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"+d.strftime([format='%F']) -> string ;T0[I" (*args);T@FI" Date;TcRDoc::NormalClass00PK]d> _parse-c.rinu[U:RDoc::AnyMethod[iI" _parse:ETI"Date::_parse;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"EParses the given representation of date and time, and returns a ;TI"hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [ I"CThis method *does not* function as a validator. If the input ;TI"Istring does not match valid formats strictly, you may get a cryptic ;TI"9result. Should consider to use `Date._strptime` or ;TI"=`DateTime._strptime` instead of this method as possible.;T@o; ; [I"IIf the optional second argument is true and the detected year is in ;TI"Ithe range "00" to "99", considers the year a 2-digit form and makes ;TI" it full.;T@o:RDoc::Markup::Verbatim; [I"DDate._parse('2001-02-03') #=> {:year=>2001, :mon=>2, :mday=>3} ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I" hash ;T0[I" (*args);T@#FI" Date;TcRDoc::NormalClass00PK]έmarshal_dump_old-i.rinu[U:RDoc::AnyMethod[iI"marshal_dump_old:ETI"Date#marshal_dump_old;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]qVprev_month-i.rinu[U:RDoc::AnyMethod[iI"prev_month:ETI"Date#prev_month;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")This method is equivalent to d << n.;To:RDoc::Markup::BlankLineo; ; [I"See Date#<< for examples.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"#d.prev_month([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]dC^^ england-i.rinu[U:RDoc::AnyMethod[iI" england:ETI"Date#england;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";This method is equivalent to new_start(Date::ENGLAND).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.england -> date ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]@ ˩ rfc2822-i.rinu[U:RDoc::AnyMethod[iI" rfc2822:ETI"Date#rfc2822;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"BThis method is equivalent to strftime('%a, %-d %b %Y %T %z').;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"1d.rfc2822 -> string d.rfc822 -> string ;T0[[I" rfc822;To;; [ o; ; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical RFC 2822 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"4Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000') ;TI"K #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T; @; 0[I" rfc822;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK]{q?:SSthursday%3f-i.rinu[U:RDoc::AnyMethod[iI"thursday?:ETI"Date#thursday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Returns true if the date is Thursday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.thursday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]AWppvalid_civil%3f-c.rinu[U:RDoc::AnyMethod[iI"valid_civil?:ETI"Date::valid_civil?;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"IReturns true if the given calendar date is valid, and false if not. ;TI"CValid in this context is whether the arguments passed to this ;TI"'method would be accepted by ::new.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.valid_date?(2001,2,3) #=> true ;TI"1Date.valid_date?(2001,2,29) #=> false ;TI"0Date.valid_date?(2001,2,-1) #=> true ;T: @format0o; ; [I"See also ::jd and ::civil.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Date.valid_civil?(year, month, mday[, start=Date::ITALY]) -> bool Date.valid_date?(year, month, mday[, start=Date::ITALY]) -> bool ;T0[I"(p1, p2, p3, p4 = v4);T@FI" Date;TcRDoc::NormalClass00PK]infinite%3f-i.rinu[U:RDoc::AnyMethod[iI"infinite?:ETI"Date#infinite?;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/lib/date.rb;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK],Mb'' cdesc-Date.rinu[U:RDoc::NormalClass[iI" Date:ET@I" Object;To:RDoc::Markup::Document: @parts[o;;[Jo:RDoc::Markup::Paragraph;[I"9date and datetime class - Tadayoshi Funaba 1998-2011;To:RDoc::Markup::BlankLineo; ;[I"4'date' provides two classes: Date and DateTime.;T@S:RDoc::Markup::Heading: leveli: textI"Terms and Definitions;T@o; ;[I"ESome terms and definitions are based on ISO 8601 and JIS X 0301.;T@S; ; i; I"Calendar Date;T@o; ;[I"?The calendar date is a particular day of a calendar year, ;TI"Eidentified by its ordinal number within a calendar month within ;TI"that year.;T@o; ;[I"1In those classes, this is so-called "civil".;T@S; ; i; I"Ordinal Date;T@o; ;[I"HThe ordinal date is a particular day of a calendar year identified ;TI"+by its ordinal number within the year.;T@o; ;[I"3In those classes, this is so-called "ordinal".;T@S; ; i; I"Week Date;T@o; ;[I"IThe week date is a date identified by calendar week and day numbers.;T@o; ;[ I"EThe calendar week is a seven day period within a calendar year, ;TI"Fstarting on a Monday and identified by its ordinal number within ;TI"Cthe year; the first calendar week of the year is the one that ;TI"@includes the first Thursday of that year. In the Gregorian ;TI"Gcalendar, this is equivalent to the week which includes January 4.;T@o; ;[I"6In those classes, this is so-called "commercial".;T@S; ; i; I"Julian Day Number;T@o; ;[I"IThe Julian day number is in elapsed days since noon (Greenwich Mean ;TI";Time) on January 1, 4713 BCE (in the Julian calendar).;T@o; ;[ I"IIn this document, the astronomical Julian day number is the same as ;TI"Fthe original Julian day number. And the chronological Julian day ;TI"Gnumber is a variation of the Julian day number. Its days begin at ;TI"midnight on local time.;T@o; ;[I"IIn this document, when the term "Julian day number" simply appears, ;TI"Bit just refers to "chronological Julian day number", not the ;TI"original.;T@o; ;[I":In those classes, those are so-called "ajd" and "jd".;T@S; ; i; I"Modified Julian Day Number;T@o; ;[I"FThe modified Julian day number is in elapsed days since midnight ;TI"B(Coordinated Universal Time) on November 17, 1858 CE (in the ;TI"Gregorian calendar).;T@o; ;[ I"FIn this document, the astronomical modified Julian day number is ;TI"Bthe same as the original modified Julian day number. And the ;TI"Dchronological modified Julian day number is a variation of the ;TI"Emodified Julian day number. Its days begin at midnight on local ;TI" time.;T@o; ;[I"IIn this document, when the term "modified Julian day number" simply ;TI"Cappears, it just refers to "chronological modified Julian day ;TI"number", not the original.;T@o; ;[I" # ;TI"Date.jd(2451944) ;TI"" #=> # ;TI"Date.ordinal(2001,34) ;TI"" #=> # ;TI"Date.commercial(2001,5,6) ;TI"" #=> # ;TI"Date.parse('2001-02-03') ;TI"" #=> # ;TI"-Date.strptime('03-02-2001', '%d-%m-%Y') ;TI"" #=> # ;TI" Time.new(2001,2,3).to_date ;TI"" #=> # ;T: @format0o; ;[I"DAll date objects are immutable; hence cannot modify themselves.;T@o; ;[I"@The concept of a date object can be represented as a tuple ;TI"Aof the day count, the offset and the day of calendar reform.;T@o; ;[ I"?The day count denotes the absolute position of a temporal ;TI"Ddimension. The offset is relative adjustment, which determines ;TI"@decoded local time with the day count. The day of calendar ;TI"Breform denotes the start day of the new style. The old style ;TI"=of the West is the Julian calendar which was adopted by ;TI"CCaesar. The new style is the Gregorian calendar, which is the ;TI".current civil calendar of many countries.;T@o; ;[I"DThe day count is virtually the astronomical Julian day number. ;TI"=The offset in this class is usually zero, and cannot be ;TI"specified directly.;T@o; ;[ I"=A Date object can be created with an optional argument, ;TI">the day of calendar reform as a Julian day number, which ;TI"Ashould be 2298874 to 2426355 or negative/positive infinity. ;TI">The default value is +Date::ITALY+ (2299161=1582-10-15). ;TI"See also sample/cal.rb.;T@o;;[I"($ ruby sample/cal.rb -c it 10 1582 ;TI" October 1582 ;TI" S M Tu W Th F S ;TI" 1 2 3 4 15 16 ;TI"17 18 19 20 21 22 23 ;TI"24 25 26 27 28 29 30 ;TI"31 ;TI" ;TI"($ ruby sample/cal.rb -c gb 9 1752 ;TI" September 1752 ;TI" S M Tu W Th F S ;TI" 1 2 14 15 16 ;TI"17 18 19 20 21 22 23 ;TI"24 25 26 27 28 29 30 ;T;0o; ;[I";A Date object has various methods. See each reference.;T@o;;[ I"$d = Date.parse('3rd Feb 2001') ;TI"> #=> # ;TI"+d.year #=> 2001 ;TI"(d.mon #=> 2 ;TI"(d.mday #=> 3 ;TI"(d.wday #=> 6 ;TI">d += 1 #=> # ;TI"7d.strftime('%a %d %b %Y') #=> "Sun 04 Feb 2001";T;0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0o;;[;I"ext/date/lib/date.rb;T;0o;;[;I""ext/json/lib/json/add/date.rb;T;0;0;0[[ U:RDoc::Constant[iI"MONTHNAMES;TI"Date::MONTHNAMES;T: public0o;;[o; ;[I"DAn array of strings of full month names in English. The first ;TI"element is nil.;T;@;0@@cRDoc::NormalClass0U;[iI"ABBR_MONTHNAMES;TI"Date::ABBR_MONTHNAMES;T;0o;;[o; ;[I"EAn array of strings of abbreviated month names in English. The ;TI"first element is nil.;T;@;0@@@0U;[iI" DAYNAMES;TI"Date::DAYNAMES;T;0o;;[o; ;[I"KAn array of strings of the full names of days of the week in English. ;TI"The first is "Sunday".;T;@;0@@@0U;[iI"ABBR_DAYNAMES;TI"Date::ABBR_DAYNAMES;T;0o;;[o; ;[I"CAn array of strings of abbreviated day names in English. The ;TI"first is "Sun".;T;@;0@@@0U;[iI" ITALY;TI"Date::ITALY;T;0o;;[o; ;[I"CThe Julian day number of the day of calendar reform for Italy ;TI"!and some catholic countries.;T;@;0@@@0U;[iI" ENGLAND;TI"Date::ENGLAND;T;0o;;[o; ;[I"EThe Julian day number of the day of calendar reform for England ;TI"and her colonies.;T;@;0@@@0U;[iI" JULIAN;TI"Date::JULIAN;T;0o;;[o; ;[I"AThe Julian day number of the day of calendar reform for the ;TI"proleptic Julian calendar.;T;@;0@@@0U;[iI"GREGORIAN;TI"Date::GREGORIAN;T;0o;;[o; ;[I"AThe Julian day number of the day of calendar reform for the ;TI""proleptic Gregorian calendar.;T;@;0@@@0[[I"Comparable;To;;[;@;0I"ext/date/date_core.c;T[[I" class;T[[;[[:protected[[: private[0[I"_httpdate;T@[I" _iso8601;T@[I"_jisx0301;T@[I" _parse;T@[I" _rfc2822;T@[I" _rfc3339;T@[I" _rfc822;T@[I"_strptime;T@[I"_xmlschema;T@[I" civil;T@[I"commercial;T@[I"gregorian_leap?;T@[I" httpdate;T@[I" iso8601;T@[I"jd;T@[I" jisx0301;T@[I"json_create;TI""ext/json/lib/json/add/date.rb;T[I"julian_leap?;T@[I" leap?;T@[I"new;T@[I" new!;T@[I" nth_kday;T@[I" ordinal;T@[I" parse;T@[I" rfc2822;T@[I" rfc3339;T@[I" rfc822;T@[I" strptime;T@[I" test_all;T@[I"test_civil;T@[I"test_commercial;T@[I"test_nth_kday;T@[I"test_ordinal;T@[I"test_unit_conv;T@[I"test_weeknum;T@[I" today;T@[I"valid_civil?;T@[I"valid_commercial?;T@[I"valid_date?;T@[I"valid_jd?;T@[I"valid_ordinal?;T@[I" weeknum;T@[I"xmlschema;T@[I" instance;T[[;[[;[[;[S[I"+;T@[I"-;T@[I"<<;T@[I"<=>;T@[I"===;T@[I">>;T@[I"ajd;T@[I" amjd;T@[I" as_json;T@B[I" asctime;T@[I" ctime;T@[I" cwday;T@[I" cweek;T@[I" cwyear;T@[I"day;T@[I"day_fraction;T@[I" downto;T@[I" england;T@[I" fill;T@[I" friday?;T@[I"gregorian;T@[I"gregorian?;T@[I" hour;T@[I" httpdate;T@[I"infinite?;TI"ext/date/lib/date.rb;T[I" inspect;T@[I"inspect_raw;T@[I" iso8601;T@[I" italy;T@[I"jd;T@[I" jisx0301;T@[I" julian;T@[I" julian?;T@[I"ld;T@[I" leap?;T@[I"marshal_dump_old;T@[I" mday;T@[I"min;T@[I" minute;T@[I"mjd;T@[I"mon;T@[I" monday?;T@[I" month;T@[I"new_start;T@[I" next;T@[I" next_day;T@[I"next_month;T@[I"next_year;T@[I"nth_kday?;T@[I" prev_day;T@[I"prev_month;T@[I"prev_year;T@[I" rfc2822;T@[I" rfc3339;T@[@V@[I"saturday?;T@[I"sec;T@[I" second;T@[I" start;T@[I" step;T@[I" strftime;T@[I" succ;T@[I" sunday?;T@[I"thursday?;T@[I" to_date;T@[I"to_datetime;T@[I" to_json;T@B[I" to_s;T@[I" to_time;T@[I" tuesday?;T@[I" upto;T@[I" wday;T@[I"wednesday?;T@[I" wnum0;T@[I" wnum1;T@[I"xmlschema;T@[I" yday;T@[I" year;T@[[U:RDoc::Context::Section[i0o;;[;0;0[I"ext/date/date_core.c;TI"ext/date/lib/date.rb;TI""ext/json/lib/json/add/date.rb;T@cRDoc::TopLevelPK]pmon-i.rinu[U:RDoc::AnyMethod[iI"mon:ETI" Date#mon;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Returns the month (1-12).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).mon #=> 2;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"-d.mon -> fixnum d.month -> fixnum ;T0[[I" month;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK] i iso8601-i.rinu[U:RDoc::AnyMethod[iI" iso8601:ETI"Date#iso8601;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"1This method is equivalent to strftime('%F').;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"5d.iso8601 -> string d.xmlschema -> string ;T0[[I"xmlschema;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK]-_ V upto-i.rinu[U:RDoc::AnyMethod[iI" upto:ETI"Date#upto;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";This method is equivalent to step(max, 1){|date| ...}.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Od.upto(max) -> enumerator d.upto(max){|date| ...} -> self ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]*"( yday-i.rinu[U:RDoc::AnyMethod[iI" yday:ETI"Date#yday;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Returns the day of the year (1-366).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"-Date.new(2001,2,3).yday #=> 34;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.yday -> fixnum ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]Spp as_json-i.rinu[U:RDoc::AnyMethod[iI" as_json:ETI"Date#as_json;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"OReturns a hash, that will be turned into a JSON object and represent this ;TI" object.;T: @fileI""ext/json/lib/json/add/date.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*);T@FI" Date;TcRDoc::NormalClass00PK]Dn2 to_json-i.rinu[U:RDoc::AnyMethod[iI" to_json:ETI"Date#to_json;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"QStores class name (Date) with Julian year y, month m, day ;TI"Ed and Day of Calendar Reform sg as JSON string;T: @fileI""ext/json/lib/json/add/date.rb;T:0@omit_headings_from_table_of_contents_below000[I" (*args);T@FI" Date;TcRDoc::NormalClass00PK]slWWwednesday%3f-i.rinu[U:RDoc::AnyMethod[iI"wednesday?:ETI"Date#wednesday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"+Returns true if the date is Wednesday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.wednesday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]*K to_s-i.rinu[U:RDoc::AnyMethod[iI" to_s:ETI"Date#to_s;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"JReturns a string in an ISO 8601 format. (This method doesn't use the ;TI"expanded representations.);To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I".Date.new(2001,2,3).to_s #=> "2001-02-03";T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.to_s -> string ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]itest_civil-c.rinu[U:RDoc::AnyMethod[iI"test_civil:ETI"Date::test_civil;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]ffgregorian-i.rinu[U:RDoc::AnyMethod[iI"gregorian:ETI"Date#gregorian;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"=This method is equivalent to new_start(Date::GREGORIAN).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.gregorian -> date ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]g jisx0301-c.rinu[U:RDoc::AnyMethod[iI" jisx0301:ETI"Date::jisx0301;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"%some typical JIS X 0301 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"KDate.jisx0301('H13.02.03') #=> # ;T: @format0o; ; [I"7For no-era year, legacy format, Heisei is assumed.;T@o; ; [I"KDate.jisx0301('13.02.03') #=> # ;T; 0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"TDate.jisx0301(string='-4712-01-01'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK] q''new_start-i.rinu[U:RDoc::AnyMethod[iI"new_start:ETI"Date#new_start;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I";Duplicates self and resets its day of calendar reform.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"d = Date.new(1582,10,15) ;TI"Bd.new_start(Date::JULIAN) #=> #;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"0d.new_start([start=Date::ITALY]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]min-i.rinu[U:RDoc::AnyMethod[iI"min:ETI" Date#min;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass0[@FI" hour;TPK]JPWld-i.rinu[U:RDoc::AnyMethod[iI"ld:ETI" Date#ld;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FReturns the Lilian day number. This is a whole number, which is ;TI".adjusted by the offset as the local time.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.new(2001,2,3).ld #=> 152784;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.ld -> integer ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]%! minute-i.rinu[U:RDoc::AnyMethod[iI" minute:ETI"Date#minute;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass0[@FI" hour;TPK]&CC rfc3339-c.rinu[U:RDoc::AnyMethod[iI" rfc3339:ETI"Date::rfc3339;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical RFC 3339 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"KDate.rfc3339('2001-02-03T04:05:06+07:00') #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"bDate.rfc3339(string='-4712-01-01T00:00:00+00:00'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK]z_strptime-c.rinu[U:RDoc::AnyMethod[iI"_strptime:ETI"Date::_strptime;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"EParses the given representation of date and time with the given ;TI"Ftemplate, and returns a hash of parsed elements. _strptime does ;TI"Bnot support specification of flags and width unlike strftime.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I".Date._strptime('2001-02-03', '%Y-%m-%d') ;TI"D #=> {:year=>2001, :mon=>2, :mday=>3} ;T: @format0o; ; [I"(See also strptime(3) and #strftime.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"5Date._strptime(string[, format='%F']) -> hash ;T0[I" (*args);T@FI" Date;TcRDoc::NormalClass00PK]uOOtuesday%3f-i.rinu[U:RDoc::AnyMethod[iI" tuesday?:ETI"Date#tuesday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Returns true if the date is Tuesday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.tuesday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]t5pp next-i.rinu[U:RDoc::AnyMethod[iI" next:ETI"Date#next;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"6Returns a date object denoting the following day.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"'d.succ -> date d.next -> date ;T0[[I" succ;T@ I"();T@FI" Date;TcRDoc::NormalClass00PK]3W month-i.rinu[U:RDoc::AnyMethod[iI" month:ETI"Date#month;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"Returns the month (1-12).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).mon #=> 2;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI"mon;TPK]q4zday_fraction-i.rinu[U:RDoc::AnyMethod[iI"day_fraction:ETI"Date#day_fraction;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I",Returns the fractional part of the day.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"8DateTime.new(2001,2,3,12).day_fraction #=> (1/2);T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I""d.day_fraction -> rational ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]>3E]] leap%3f-c.rinu[U:RDoc::AnyMethod[iI" leap?:ETI"Date::leap?;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"DReturns true if the given year is a leap year of the proleptic ;TI"Gregorian calendar.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"1Date.gregorian_leap?(1900) #=> false ;TI"/Date.gregorian_leap?(2000) #=> true;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"ODate.gregorian_leap?(year) -> bool Date.leap?(year) -> bool ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]_6day-i.rinu[U:RDoc::AnyMethod[iI"day:ETI" Date#day;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Returns the day of the month (1-31).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I",Date.new(2001,2,3).mday #=> 3;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI" mday;TPK]oeprev_year-i.rinu[U:RDoc::AnyMethod[iI"prev_year:ETI"Date#prev_year;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"0This method is equivalent to d << (n * 12).;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"CDate.new(2001,2,3).prev_year #=> # ;TI"CDate.new(2008,2,29).prev_year #=> # ;TI"CDate.new(2008,2,29).prev_year(4) #=> # ;T: @format0o; ; [I"See also Date#<<.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I""d.prev_year([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]h>HH succ-i.rinu[U:RDoc::AnyMethod[iI" succ:ETI"Date#succ;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"6Returns a date object denoting the following day.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI" next;TPK]Ä httpdate-i.rinu[U:RDoc::AnyMethod[iI" httpdate:ETI"Date#httpdate;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"CThis method is equivalent to strftime('%a, %d %b %Y %T GMT'). ;TI"See also RFC 2616.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.httpdate -> string ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]@U-FQQ_httpdate-c.rinu[U:RDoc::AnyMethod[iI"_httpdate:ETI"Date::_httpdate;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"2Date._httpdate(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]VmKKmonday%3f-i.rinu[U:RDoc::AnyMethod[iI" monday?:ETI"Date#monday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(Returns true if the date is Monday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.monday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]:uvalid_ordinal%3f-c.rinu[U:RDoc::AnyMethod[iI"valid_ordinal?:ETI"Date::valid_ordinal?;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"GReturns true if the given ordinal date is valid, and false if not.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.valid_ordinal?(2001,34) #=> true ;TI"1Date.valid_ordinal?(2001,366) #=> false ;T: @format0o; ; [I"!See also ::jd and ::ordinal.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"DDate.valid_ordinal?(year, yday[, start=Date::ITALY]) -> bool ;T0[I"(p1, p2, p3 = v3);T@FI" Date;TcRDoc::NormalClass00PK]TT hour-i.rinu[U:RDoc::AnyMethod[iI" hour:ETI"Date#hour;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[ [I"min;To;; [; @ ; 0[I" minute;To;; [; @ ; 0[I"sec;To;; [; @ ; 0[I" second;To;; [; @ ; 0I"();T@ FI" Date;TcRDoc::NormalClass00PK]/2%3d%3d%3d-i.rinu[U:RDoc::AnyMethod[iI"===:ETI" Date#===;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"+Returns true if they are the same day.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"/Date.new(2001,2,3) === Date.new(2001,2,3) ;TI"0 #=> true ;TI"/Date.new(2001,2,3) === Date.new(2001,2,4) ;TI"1 #=> false ;TI":DateTime.new(2001,2,3) === DateTime.new(2001,2,3,12) ;TI"0 #=> true ;TI"FDateTime.new(2001,2,3) === DateTime.new(2001,2,3,0,0,0,'+24:00') ;TI"0 #=> true ;TI"FDateTime.new(2001,2,3) === DateTime.new(2001,2,4,0,0,0,'+24:00') ;TI"0 #=> false;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d === other -> bool ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]u nth_kday-c.rinu[U:RDoc::AnyMethod[iI" nth_kday:ETI"Date::nth_kday;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"2(p1 = v1, p2 = v2, p3 = v3, p4 = v4, p5 = v5);T@ FI" Date;TcRDoc::NormalClass00PK]%2b-i.rinu[U:RDoc::AnyMethod[iI"+:ETI" Date#+;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns a date object pointing +other+ days after self. The other ;TI"Fshould be a numeric value. If the other is a fractional number, ;TI"1assumes its precision is at most nanosecond.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I";Date.new(2001,2,3) + 1 #=> # ;TI",DateTime.new(2001,2,3) + Rational(1,2) ;TI"N #=> # ;TI"-DateTime.new(2001,2,3) + Rational(-1,2) ;TI"N #=> # ;TI"4DateTime.jd(0,12) + DateTime.new(2001,2,3).ajd ;TI"M #=> #;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d + other -> date ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]8>nnvalid_date%3f-c.rinu[U:RDoc::AnyMethod[iI"valid_date?:ETI"Date::valid_date?;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"IReturns true if the given calendar date is valid, and false if not. ;TI"CValid in this context is whether the arguments passed to this ;TI"'method would be accepted by ::new.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"0Date.valid_date?(2001,2,3) #=> true ;TI"1Date.valid_date?(2001,2,29) #=> false ;TI"0Date.valid_date?(2001,2,-1) #=> true ;T: @format0o; ; [I"See also ::jd and ::civil.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Date.valid_civil?(year, month, mday[, start=Date::ITALY]) -> bool Date.valid_date?(year, month, mday[, start=Date::ITALY]) -> bool ;T0[I"(p1, p2, p3, p4 = v4);T@FI" Date;TcRDoc::NormalClass00PK]i@ww httpdate-c.rinu[U:RDoc::AnyMethod[iI" httpdate:ETI"Date::httpdate;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"some RFC 2616 format.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"4Date.httpdate('Sat, 03 Feb 2001 00:00:00 GMT') ;TI"K #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"gDate.httpdate(string='Mon, 01 Jan -4712 00:00:00 GMT'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK]IUzz _rfc2822-c.rinu[U:RDoc::AnyMethod[iI" _rfc2822:ETI"Date::_rfc2822;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"]Date._rfc2822(string, limit: 128) -> hash Date._rfc822(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]'qUtest_nth_kday-c.rinu[U:RDoc::AnyMethod[iI"test_nth_kday:ETI"Date::test_nth_kday;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]F test_all-c.rinu[U:RDoc::AnyMethod[iI" test_all:ETI"Date::test_all;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]e#Njd-c.rinu[U:RDoc::AnyMethod[iI"jd:ETI" Date::jd;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"GCreates a date object denoting the given chronological Julian day ;TI" number.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I";Date.jd(2451944) #=> # ;TI";Date.jd(2451945) #=> # ;TI" # ;T: @format0o; ; [I"See also ::new.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"4Date.jd([jd=0[, start=Date::ITALY]]) -> date ;T0[I"(p1 = v1, p2 = v2);T@FI" Date;TcRDoc::NormalClass00PK]2)%2d-i.rinu[U:RDoc::AnyMethod[iI"-:ETI" Date#-;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"IReturns the difference between the two dates if the other is a date ;TI"Eobject. If the other is a numeric value, returns a date object ;TI"Npointing +other+ days before self. If the other is a fractional number, ;TI"1assumes its precision is at most nanosecond.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I":Date.new(2001,2,3) - 1 #=> # ;TI",DateTime.new(2001,2,3) - Rational(1,2) ;TI"M #=> # ;TI")Date.new(2001,2,3) - Date.new(2001) ;TI") #=> (33/1) ;TI"8DateTime.new(2001,2,3) - DateTime.new(2001,2,2,12) ;TI"' #=> (1/2);T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"%d - other -> date or rational ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]%nth_kday%3f-i.rinu[U:RDoc::AnyMethod[iI"nth_kday?:ETI"Date#nth_kday?;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I" (p1, p2);T@ FI" Date;TcRDoc::NormalClass00PK]Qcommercial-c.rinu[U:RDoc::AnyMethod[iI"commercial:ETI"Date::commercial;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"8Creates a date object denoting the given week date.;To:RDoc::Markup::BlankLineo; ; [I"EThe week and the day of week should be a negative or a positive ;TI"Cnumber (as a relative week/day from the end of year/week when ;TI")negative). They should not be zero.;T@o:RDoc::Markup::Verbatim; [I";Date.commercial(2001) #=> # ;TI";Date.commercial(2002) #=> # ;TI";Date.commercial(2001,5,6) #=> # ;T: @format0o; ; [I"See also ::jd and ::new.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"ZDate.commercial([cwyear=-4712[, cweek=1[, cwday=1[, start=Date::ITALY]]]]) -> date ;T0[I")(p1 = v1, p2 = v2, p3 = v3, p4 = v4);T@FI" Date;TcRDoc::NormalClass00PK] true ;TI"0Date.julian_leap?(1901) #=> false;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"'Date.julian_leap?(year) -> bool ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]y))gregorian%3f-i.rinu[U:RDoc::AnyMethod[iI"gregorian?:ETI"Date#gregorian?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HReturns true if the date is on or after the day of calendar reform.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"7Date.new(1582,10,15).gregorian? #=> true ;TI"7(Date.new(1582,10,15) - 1).gregorian? #=> false;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.gregorian? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]8 %3c%3c-i.rinu[U:RDoc::AnyMethod[iI"<<:ETI" Date#<<;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I" # ;TI"=Date.new(2001,2,3) << -2 #=> # ;T: @format0o; ; [I"CWhen the same day does not exist for the corresponding month, ;TI"/the last day of the month is used instead:;T@o; ; [I" # ;TI" # ;T; 0o; ; [I"GThis also results in the following, possibly unexpected, behavior:;T@o; ; [ I"BDate.new(2001,3,31) << 2 #=> # ;TI"BDate.new(2001,3,31) << 1 << 1 #=> # ;TI" ;TI"ADate.new(2001,3,31) << 1 << -1 #=> #;T; 0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d << n -> date ;T0[I" (p1);T@%FI" Date;TcRDoc::NormalClass00PK]klݯ to_time-i.rinu[U:RDoc::AnyMethod[iI" to_time:ETI"Date#to_time;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IReturns a Time object which denotes self. If self is a julian date, ;TI"Aconvert it to a gregorian date before converting it to Time.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.to_time -> time ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]*&NN _iso8601-c.rinu[U:RDoc::AnyMethod[iI" _iso8601:ETI"Date::_iso8601;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"1Date._iso8601(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]2)" rfc2822-c.rinu[U:RDoc::AnyMethod[iI" rfc2822:ETI"Date::rfc2822;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical RFC 2822 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"4Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000') ;TI"K #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Date.rfc2822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=Date::ITALY], limit: 128) -> date Date.rfc822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK] iso8601-c.rinu[U:RDoc::AnyMethod[iI" iso8601:ETI"Date::iso8601;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical ISO 8601 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"CDate.iso8601('2001-02-03') #=> # ;TI"CDate.iso8601('20010203') #=> # ;TI"CDate.iso8601('2001-W05-6') #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"SDate.iso8601(string='-4712-01-01'[, start=Date::ITALY], limit: 128) -> date ;T0[I" (p1 = v1, p2 = v2, p3 = {});T@FI" Date;TcRDoc::NormalClass00PK]U%% start-i.rinu[U:RDoc::AnyMethod[iI" start:ETI"Date#start;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GReturns the Julian day number denoting the day of calendar reform.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"=Date.new(2001,2,3).start #=> 2299161.0 ;TI" -Infinity;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.start -> float ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]PR ctime-i.rinu[U:RDoc::AnyMethod[iI" ctime:ETI"Date#ctime;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"FReturns a string in asctime(3) format (but without "\n\0" at the ;TI"8end). This method is equivalent to strftime('%c').;To:RDoc::Markup::BlankLineo; ; [I"%See also asctime(3) or ctime(3).;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI" asctime;TPK] P\\ prev_day-i.rinu[U:RDoc::AnyMethod[iI" prev_day:ETI"Date#prev_day;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(This method is equivalent to d - n.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"!d.prev_day([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]/>xx _rfc822-c.rinu[U:RDoc::AnyMethod[iI" _rfc822:ETI"Date::_rfc822;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"'Returns a hash of parsed elements.;To:RDoc::Markup::BlankLineo; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"]Date._rfc2822(string, limit: 128) -> hash Date._rfc822(string, limit: 128) -> hash ;T0[I"(p1, p2 = {});T@FI" Date;TcRDoc::NormalClass00PK]isec-i.rinu[U:RDoc::AnyMethod[iI"sec:ETI" Date#sec;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass0[@FI" hour;TPK]|? today-c.rinu[U:RDoc::AnyMethod[iI" today:ETI"Date::today;TT: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"4Creates a date object denoting the present day.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"-Date.today #=> #;T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"/Date.today([start=Date::ITALY]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK] test_unit_conv-c.rinu[U:RDoc::AnyMethod[iI"test_unit_conv:ETI"Date::test_unit_conv;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]<<{next_month-i.rinu[U:RDoc::AnyMethod[iI"next_month:ETI"Date#next_month;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")This method is equivalent to d >> n.;To:RDoc::Markup::BlankLineo; ; [I"See Date#>> for examples.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"#d.next_month([n=1]) -> date ;T0[I"(p1 = v1);T@FI" Date;TcRDoc::NormalClass00PK]yY   rfc822-i.rinu[U:RDoc::AnyMethod[iI" rfc822:ETI"Date#rfc822;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"ECreates a new Date object by parsing from a string according to ;TI"#some typical RFC 2822 formats.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"4Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000') ;TI"K #=> # ;T: @format0o; ; [I"KRaise an ArgumentError when the string length is longer than _limit_. ;TI"DYou can stop this check by passing `limit: nil`, but note that ;TI"&it may take a long time to parse.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@FI" Date;TcRDoc::NormalClass0[@FI" rfc2822;TPK]Nӆ UU%3c%3d%3e-i.rinu[U:RDoc::AnyMethod[iI"<=>:ETI" Date#<=>;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"GCompares the two dates and returns -1, zero, 1 or nil. The other ;TI"Cshould be a date object or a numeric value as an astronomical ;TI"Julian day number.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"8Date.new(2001,2,3) <=> Date.new(2001,2,4) #=> -1 ;TI"7Date.new(2001,2,3) <=> Date.new(2001,2,3) #=> 0 ;TI"7Date.new(2001,2,3) <=> Date.new(2001,2,2) #=> 1 ;TI"9Date.new(2001,2,3) <=> Object.new #=> nil ;TI"7Date.new(2001,2,3) <=> Rational(4903887,2) #=> 0 ;T: @format0o; ; [I"See also Comparable.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"&d <=> other -> -1, 0, +1 or nil ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]OO second-i.rinu[U:RDoc::AnyMethod[iI" second:ETI"Date#second;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass0[@FI" hour;TPK]9 wnum1-i.rinu[U:RDoc::AnyMethod[iI" wnum1:ETI"Date#wnum1;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]Mntest_commercial-c.rinu[U:RDoc::AnyMethod[iI"test_commercial:ETI"Date::test_commercial;TT: privateo:RDoc::Markup::Document: @parts[: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below000[I"();T@ FI" Date;TcRDoc::NormalClass00PK]P downto-i.rinu[U:RDoc::AnyMethod[iI" downto:ETI"Date#downto;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I" enumerator d.downto(min){|date| ...} -> self ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00PK]UU0 civil-c.rinu[U:RDoc::AnyMethod[iI" civil:ETI"Date::civil;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I" # ;TI";Date.new(2001,2,3) #=> # ;TI";Date.new(2001,2,-1) #=> # ;T: @format0o; ; [I"See also ::jd.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"Date.civil([year=-4712[, month=1[, mday=1[, start=Date::ITALY]]]]) -> date Date.new([year=-4712[, month=1[, mday=1[, start=Date::ITALY]]]]) -> date ;T0[I" (*args);T@%FI" Date;TcRDoc::NormalClass00PK]#yggajd-i.rinu[U:RDoc::AnyMethod[iI"ajd:ETI" Date#ajd;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"GReturns the astronomical Julian day number. This is a fractional ;TI"1number, which is not adjusted by the offset.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"FDateTime.new(2001,2,3,4,5,6,'+7').ajd #=> (11769328217/4800) ;TI"EDateTime.new(2001,2,2,14,5,6,'-7').ajd #=> (11769328217/4800);T: @format0: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.ajd -> rational ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK]8pSSsaturday%3f-i.rinu[U:RDoc::AnyMethod[iI"saturday?:ETI"Date#saturday?;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"*Returns true if the date is Saturday.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"d.saturday? -> bool ;T0[I"();T@FI" Date;TcRDoc::NormalClass00PK] wnum0-i.rinu[PK]<([ cweek-i.rinu[PK]B strptime-c.rinu[PK]S %wday-i.rinu[PK]`prKK friday%3f-i.rinu[PK]ŋ  mday-i.rinu[PK][mR  cwyear-i.rinu[PK]8 fill-i.rinu[PK]sμPPxmlschema-i.rinu[PK]7tQQmjd-i.rinu[PK]c)ޠtest_ordinal-c.rinu[PK]wqqKgregorian_leap%3f-c.rinu[PK]dQQ_jisx0301-c.rinu[PK]P\\ next_day-i.rinu[PK]؃b55 *to_date-i.rinu[PK]k0valid_jd%3f-c.rinu[PK]\UU  inspect-i.rinu[PK]Tkw44#xmlschema-c.rinu[PK]=Boo &amjd-i.rinu[PK]NN )_rfc3339-c.rinu[PK](-f0,test_weeknum-c.rinu[PK]C d-step-i.rinu[PK]h:0next_year-i.rinu[PK]Xh23json_create-c.rinu[PK]|ZZ  5julian-i.rinu[PK]VV 6italy-i.rinu[PK]7jT 28jisx0301-i.rinu[PK] 0 ?:rfc822-c.rinu[PK]7:Y>julian%3f-i.rinu[PK]r @year-i.rinu[PK]%"IIBjd-i.rinu[PK]I AEleap%3f-i.rinu[PK]%%7 ^Gnew%21-c.rinu[PK]@qq Hordinal-c.rinu[PK]P<BLnew-c.rinu[PK]F}MError/cdesc-Error.rinu[PK]\^^ [Oparse-c.rinu[PK]BGG Tweeknum-c.rinu[PK]u CVasctime-i.rinu[PK]lqXinspect_raw-i.rinu[PK]cTTY_xmlschema-c.rinu[PK]/X\\ W\rfc3339-i.rinu[PK]f[J ]cwday-i.rinu[PK]" ~~ _%3e%3e-i.rinu[PK] Ddvalid_commercial%3f-c.rinu[PK]#KKgsunday%3f-i.rinu[PK]U=ddito_datetime-i.rinu[PK]K;'%'% jstrftime-i.rinu[PK]d> !_parse-c.rinu[PK]έmarshal_dump_old-i.rinu[PK]qVXprev_month-i.rinu[PK]dC^^ =england-i.rinu[PK]@ ˩ יrfc2822-i.rinu[PK]{q?:SSthursday%3f-i.rinu[PK]AWppOvalid_civil%3f-c.rinu[PK]infinite%3f-i.rinu[PK],Mb'' .cdesc-Date.rinu[PK]pWmon-i.rinu[PK] i ]iso8601-i.rinu[PK]-_ V upto-i.rinu[PK]*"( yday-i.rinu[PK]Spp as_json-i.rinu[PK]Dn2 to_json-i.rinu[PK]slWWmwednesday%3f-i.rinu[PK]*K to_s-i.rinu[PK]i8test_civil-c.rinu[PK]fffgregorian-i.rinu[PK]g  jisx0301-c.rinu[PK] q''new_start-i.rinu[PK]min-i.rinu[PK]JPWld-i.rinu[PK]%! minute-i.rinu[PK]&CC rfc3339-c.rinu[PK]z_strptime-c.rinu[PK]uOOtuesday%3f-i.rinu[PK]t5pp `next-i.rinu[PK]3W  month-i.rinu[PK]q4zday_fraction-i.rinu[PK]>3E]] leap%3f-c.rinu[PK]_6day-i.rinu[PK]oeprev_year-i.rinu[PK]h>HH Wsucc-i.rinu[PK]Ä httpdate-i.rinu[PK]@U-FQQ_httpdate-c.rinu[PK]VmKK(monday%3f-i.rinu[PK]:uvalid_ordinal%3f-c.rinu[PK]TT |hour-i.rinu[PK]/2 %3d%3d%3d-i.rinu[PK]u  nth_kday-c.rinu[PK]P%2b-i.rinu[PK]8>nnfvalid_date%3f-c.rinu[PK]i@ww httpdate-c.rinu[PK]IUzz _rfc2822-c.rinu[PK]'qUtest_nth_kday-c.rinu[PK]F test_all-c.rinu[PK]e#Njd-c.rinu[PK]2)"%2d-i.rinu[PK]%&nth_kday%3f-i.rinu[PK]Q!(commercial-c.rinu[PK]iso8601-c.rinu[PK]U%% 3Bstart-i.rinu[PK]PR Dctime-i.rinu[PK] P\\ Fprev_day-i.rinu[PK]/>xx FH_rfc822-c.rinu[PK]iJsec-i.rinu[PK]|? !Ltoday-c.rinu[PK] >Ntest_unit_conv-c.rinu[PK]<<{xOnext_month-i.rinu[PK]yY   ]Qrfc822-i.rinu[PK]Nӆ UUT%3c%3d%3e-i.rinu[PK]OO 7Xsecond-i.rinu[PK]9 gYwnum1-i.rinu[PK]MnZtest_commercial-c.rinu[PK]P [downto-i.rinu[PK]UU0 ]civil-c.rinu[PK]#yggcajd-i.rinu[PK]8pSS?fsaturday%3f-i.rinu[PK{{$g