(71B) Approximate Time of Sunrise and Sunset - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (71B) Approximate Time of Sunrise and Sunset (/thread-12283.html) |
(71B) Approximate Time of Sunrise and Sunset - Eddie W. Shore - 01-28-2019 12:39 AM Source: Hewlett Packard "HP-65 Aviation Pac" 1974 The program SUNTIME approximates the time of sunset and sunrise based on a date in a general 365-day calendar, the person's location (longitude (east is negative, west is positive) and lattitude (north is positive, south is negative)), and the time zone. Time Zone Table (United States/Mexico/Canada) Hours from GMT: Hawaii: Standard and Daylight: -10 Alaska: Standard: -9, Daylight: -8 Pacific: Standard: -8, Daylight: -7 Mountain: Standard: -7, Daylight: -6 Central: Standard: -6, Daylight: -5 Eastern: Standard: -5, Daylight: -4 Program SUNTIME 494 bytes, 1/24/2019 Code:
Example: Time: January 26 (Month = 1, Day = 26) Place: Farifield, CA: 38°15′28″N 122°3′15″W Time Zone: -8 (Standard) Inputs: MONTH: 1 DAY: 26 LONG: 122,3,15 LAT: 38,15,28 TIME ZONE: -8 Results: Sunrise: 7 : 24 : 19.09497708 Susnet: 17 : 16 : 17.62419468 |