Twilight Twilight is a small MIT licensed .Net library for calculating various moon and sun phases for a given latitude, longitude and local date.