There are many formulas for determining sunrise and sunset times for locations, but for my application I only need to know if it is day or night (given a time, latitude and longitude).
After studying the terms azimuth, altitude/elevation, and zenith, I am curious if I can calculate the sun's elevation, and use that value to determine day/night status alone.
As I understand it, any value below the horizon (taking into consideration the various values for twilight) should tell me that it is night. I should be able to use -6 for civil twilight, -12 for nautical twilight, etc.
Do I need to worry about azimuth also?