class SunTimes::Calculator

Included Modules

Defined in:

sun_times/calculator.cr
sun_times/calculator/helpers.cr

Constant Summary

DEGREES_PER_HOUR = 360.0 / 24.0
ONE_DAY_TIME_SPAN = Time::Span.new(hours: 24)
SECONDS_IN_HOUR = 3600

Constructors

Instance Method Summary

Instance methods inherited from module SunTimes::Calculator::Helpers

coerce(value, minimum, maximum) coerce, coerce_degrees(degrees) coerce_degrees, coerce_gmt_hours(gmt_hours) coerce_gmt_hours, degrees_to_radians(degrees) degrees_to_radians, next_day_in_utc(datetime) next_day_in_utc, previous_day_in_utc(datetime) previous_day_in_utc, radians_to_degrees(radians) radians_to_degrees

Constructor Detail

def self.new(event : SunTimes::Events, datetime : Time, coordinates : SunTimes::Coordinates, zenith : SunTimes::ZenithType) #

[View source]

Instance Method Detail

def calculate #

[View source]