Sha256: 4ccdb4aeb53a517c4397966d4d8ef8b82e837da9c20047eb3a42b083a7ecfc8b
Contents?: true
Size: 364 Bytes
Versions: 6
Compression:
Stored size: 364 Bytes
Contents
require(File.join(File.dirname(__FILE__), '..', 'date_spec_helper')) describe "Date#jd" do it "should be able to construct a Date object based on the Julian day" do Date.jd(2454482).should == Date.civil(2008, 1, 16) end it "should be able to determine the Julian day for a Date object" do Date.civil(2008, 1, 16).jd.should == 2454482 end end
Version data entries
6 entries across 6 versions & 1 rubygems