joeyates/ruby-sun-times — Issue #2: Handle Days and Time Zones Better
Author: joeyates
Created: 2011-12-20 18:22:46+00:00
State: open

The API should clarify which 24 hour period is the time frame in which the answer is required.

From a user perspective, it seems natural to use the supplied longitude as a guide for the day. To do this, the code would have to deduce the local time zone's offset from GMT from the longitude.

If the above is possible, it may be best to remove the date parameter, and use a year_day Integer in its place. That, along with the longitude would be sufficient to decide the range of times which cover the local day.