Mega Code Archive

 
Categories / Ruby / Date
 

Create a year based on the Julian day with the jd class method

require 'date' nd = Date.jd( 2454048 ) puts nd.to_s