rfc3339 2

d.rfc3339 â string Instance Public methods This method is equivalent to strftime('%FT%T%:z').

rfc822 2

d.rfc2822 â stringd.rfc822 â string Instance Public methods This method is equivalent to strftime('%a, %-d %b %Y %T %z').

saturday?

d.saturday? â bool Instance Public methods Returns true if the date is Saturday.

start

d.start â float Instance Public methods Returns the Julian day number denoting the day of calendar reform. Date.new(2001,2,3).start #=> 2299161.0 Date.new(2001,2,3,Date::GREGORIAN).start #=> -Infinity

step

d.step(limit[, step=1]) â enumeratord.step(limit[, step=1]){|date| ...} â self Instance Public methods Iterates evaluation of the given block, which takes a date object. The limit should be a date object. Date.new(2001).step(Date.new(2001,-1,-1)).select{|d| d.sunday?}.size #=> 52

strftime

d.strftime([format='%F']) â string Instance Public methods Formats date according to the directives in the given format string. The directives begins with a percent (%) character. Any text not listed as a directive will be passed through to the output string. The directive consists of a percent (%) character, zero or more flags, optional minimum field width, optional modifier and a conversion specifier as follows. %<flags><width><modifier><conversion>

succ

d.next â date Instance Public methods Returns a date object denoting the following day.

sunday?

d.sunday? â bool Instance Public methods Returns true if the date is Sunday.

thursday?

d.thursday? â bool Instance Public methods Returns true if the date is Thursday.

to_date

d.to_date â self Instance Public methods Returns self;