-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The equation of time is the difference of the real Sun time and the mean Sun time. This difference is due to the elliptical shape of the Earth's orbit, and the obliquity of the orbit. `Sun` now has a `#equation_of_time` method that returns an integer: the time difference in seconds. ```rb time = Time.utc(2010, 7, 27, 12, 0, 0) epoch = Astronoby::Epoch.from_time(time) sun = Astronoby::Sun.new(epoch: epoch) sun.equation_of_time ```
- Loading branch information
1 parent
09e3762
commit 40311a9
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters