How much data would sunrise and sunset times for 10 years take up?
Sunrise and sunset times are not the same everywhere within a time zone. Someone on the equator at the at the eastern edge of a timezone will experience sunrise and sunset an hour before someone at the western edge of the timezone; if that timezone extended to one of the poles, someone there may not experience any sunrise or sunset. Most languages and runtimes have a Time or time_t or DateTime type that knows about UTC and local time. These can be used to relate local time to UTC. However if you want to relate time at a particular place to UTC, then you’ll need to find either the system specific implementation for time zones or find an open source (or closed source) library with a license you like. Given time in UTC and a location on Earth, you then need to find the appropriate astronomical algorithm for calculating sunrise and sunset, this should be a fairly simple formula (although it may need to be careful near the poles). So, how much data? Hardly any and you won’t need any ten yea