Mega Code Archive

 
Categories / Ruby / Date
 

Get the Julian day (days from January 1, 4713 B C , starting from 0) with the jd instance method

require 'date' date.jd # => 2454048