class SolCal::Commands::TimeToAngleFromZenithCommand
Protected Instance Methods
do_execute()
click to toggle source
# File lib/solcal/commands/time_to_angle_from_zenith_command.rb, line 5 def do_execute return "The sun will not reach #{angle_from_zenith} degrees from zenith today." unless ha_angle_to_zenith SolCal::TimeOfDay.new(solar_noon-ha_angle_to_zenith.to_deg*4/1440) end