jisx0301 2

d.jisx0301 â string Instance Public methods Returns a string in a JIS X 0301 format. Date.new(2001,2,3).jisx0301 #=> "H13.02.03"

jd 2

d.jd â integer Instance Public methods Returns the 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').jd #=> 2451944 DateTime.new(2001,2,3,4,5,6,'-7').jd #=> 2451944

italy

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

iso8601 2

d.iso8601 â stringd.xmlschema â string Instance Public methods This method is equivalent to strftime('%F').

inspect

d.inspect â string Instance Public methods Returns the value as a string for inspection. Date.new(2001,2,3).inspect #=> "#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>" DateTime.new(2001,2,3,4,5,6,'-7').inspect #=> "#<DateTime: 2001-02-03T04:05:06-07:00 ((2451944j,39906s,0n),-25200s,2299161j)>"

httpdate 2

d.httpdate â string Instance Public methods This method is equivalent to strftime('%a, %d %b %Y %T GMT'). See also RFC 2616.

gregorian?

d.gregorian? â bool Instance Public methods Retunrs true if the date is on or after the day of calendar reform. Date.new(1582,10,15).gregorian? #=> true (Date.new(1582,10,15) - 1).gregorian? #=> false

gregorian

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

friday?

d.friday? â bool Instance Public methods Returns true if the date is Friday.

england

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