downto

d.downto(min) â enumeratord.downto(min){|date| ...} â self Instance Public methods This method is equivalent to step(min, -1){|date| â¦}.

day_fraction

d.day_fraction â rational Instance Public methods Returns the fractional part of the day. DateTime.new(2001,2,3,12).day_fraction #=> (1/2)

day

d.day â fixnum Instance Public methods Returns the day of the month (1-31). Date.new(2001,2,3).mday #=> 3

cwyear

d.cwyear â integer Instance Public methods Returns the calendar week based year. Date.new(2001,2,3).cwyear #=> 2001 Date.new(2000,1,1).cwyear #=> 1999

cweek

d.cweek â fixnum Instance Public methods Returns the calendar week number (1-53). Date.new(2001,2,3).cweek #=> 5

cwday

d.cwday â fixnum Instance Public methods Returns the day of calendar week (1-7, Monday is 1). Date.new(2001,2,3).cwday #=> 6

ctime

d.ctime â string Instance Public methods Returns a string in asctime(3) format (but without ân0â at the end). This method is equivalent to strftime('%c'). See also asctime(3) or ctime(3).

asctime

d.asctime â string Instance Public methods Returns a string in asctime(3) format (but without ân0â at the end). This method is equivalent to strftime('%c'). See also asctime(3) or ctime(3).

as_json

as_json(*) Instance Public methods Returns a hash, that will be turned into a JSON object and represent this object.

amjd

d.amjd â rational Instance Public methods Returns the astronomical modified Julian day number. This is a fractional number, which is not adjusted by the offset. DateTime.new(2001,2,3,4,5,6,'+7').amjd #=> (249325817/4800) DateTime.new(2001,2,2,14,5,6,'-7').amjd #=> (249325817/4800)