new_start

d.new_start([start=Date::ITALY]) â date Instance Public methods Duplicates self and resets its the day of calendar reform. d = Date.new(1582,10,15) d.new_start(Date::JULIAN) #=> #<Date: 1582-10-05 ...>

month

d.month â fixnum Instance Public methods Returns the month (1-12). Date.new(2001,2,3).mon #=> 2

monday?

d.monday? â bool Instance Public methods Returns true if the date is Monday.

mon

d.mon â fixnumd.month â fixnum Instance Public methods Returns the month (1-12). Date.new(2001,2,3).mon #=> 2

mjd

d.mjd â integer Instance Public methods Returns the modified Julian day number. This is a whole number, which is adjusted by the offset as the local time. DateTime.new(2001,2,3,4,5,6,'+7').mjd #=> 51943 DateTime.new(2001,2,3,4,5,6,'-7').mjd #=> 51943

mday

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

leap? 2

d.leap? â bool Instance Public methods Returns true if the year is a leap year. Date.new(2000).leap? #=> true Date.new(2001).leap? #=> false

ld

d.ld â integer Instance Public methods Returns the Lilian day number. This is a whole number, which is adjusted by the offset as the local time. Date.new(2001,2,3).ld #=> 152784

julian?

d.julian? â bool Instance Public methods Retruns true if the date is before the day of calendar reform. Date.new(1582,10,15).julian? #=> false (Date.new(1582,10,15) - 1).julian? #=> true

julian

d.julian â date Instance Public methods This method is equivalent to #new_start(Date::JULIAN).