Sunrise, Sunset and IsDaytime prototypes. More...
#include "DwmTimeValue64.hh"
Go to the source code of this file.
Functions | |
| TimeValue64 | Dwm::Sunrise (double latitude, double longitude, time_t t) |
Returns the time of sunrise for the given latitude and longitude on the day that includes time t. | |
| TimeValue64 | Dwm::Sunset (double latitude, double longitude, time_t t) |
Returns the time of sunset for the given latitude and longitude on the day that includes time t. | |
| bool | Dwm::IsDaytime (double latitude, double longitude, time_t t) |
Returns true if the given time t at (latitude, longitude) is while the sun is up. | |
Sunrise, Sunset and IsDaytime prototypes.
| TimeValue64 Dwm::Sunrise | ( | double | latitude, |
| double | longitude, | ||
| time_t | t ) |
Returns the time of sunrise for the given latitude and longitude on the day that includes time t.
Note this uses the local timezone, and hence is intended to be used where (latitude,longitude) is in the local timezone.

| TimeValue64 Dwm::Sunset | ( | double | latitude, |
| double | longitude, | ||
| time_t | t ) |
Returns the time of sunset for the given latitude and longitude on the day that includes time t.
Note this uses the local timezone, and hence is intended to be used where (latitude,longitude) is in the local timezone.
