README.rdoc in calc_sun-1.2.8 vs README.rdoc in calc_sun-1.2.9

- old
+ new

@@ -3,11 +3,11 @@ {<img src="https://travis-ci.org/DouglasAllen/calc_sun.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/DouglasAllen/calc_sun] Home :: https://rubygems.org/gems/calc_sun Code :: https://github.com/DouglasAllen/calc_sun -RDoc :: http://www.rubydoc.info/gems/calc_sun/0.1.1 +RDoc :: http://www.rubydoc.info/gems/calc_sun/1.2.9 Issues :: https://github.com/DouglasAllen/calc_sun/issues === DESCRIPTION: @@ -29,11 +29,11 @@ cd to devkit dir and run devkitvars.bat or make a batchfile to start your envirnment with 'run devkitvars' cd to calc_sun dir $> gem build calc_sun.gemspec - $> gem install calc_sun-1.2.6.gem -l + $> gem install calc_sun-1.2.9.gem -l === DEVELOPERS: After checking out the source, run: @@ -64,14 +64,22 @@ ajd = DateTime.new(2003, 10, 17, 12, 30, 30).ajd.to_f puts cs.ajd2dt(ajd) # set the date with set_date as date is just an ivar day = cs.set_datetime('2003-10-17 12:30:30') - puts day + puts day.httpdate - puts "Sun rise: #{cs.rise(day.ajd, lat, lon).httpdate}" - puts "Sun noon: #{cs.noon(day.ajd, lat, lon).httpdate}" - puts "Sun set: #{cs.set(day.ajd, lat, lon).httpdate}" + puts "Sun rise: #{cs.rise(day.jd, lat, lon).httpdate}" + puts "Sun noon: #{cs.noon(day.jd, lat, lon).httpdate}" + puts "Sun set: #{cs.set(day.jd, lat, lon).httpdate}" + + puts "Sun AJD rise: #{cs.rise_jd(day.jd, lat, lon)}" + puts "Sun AJD noon: #{cs.noon_jd(day.jd, lat, lon)}" + puts "Sun AJD set: #{cs.set_jd(day.jd, lat, lon)}" + + puts "Sun azimuth rise: #{cs.rise_az(day.jd, lat, lon)}" + puts "Sun azimuth noon: #{cs.noon_az(day.jd, lat, lon)}" + puts "Sun azimuth set: #{cs.set_az(day.jd, lat, lon)}" === LICENSE: (The MIT License)