timeUtils.h
bool isDayLocal(std::time_t nowLocal, double latitudeDeg, double longitudeDeg, SunTimes::ZenithPreset preset)
Convenience wrapper: is it day at nowLocal for given location/preset?
bool compute(const std::tm &localDate, std::time_t &sunriseLocal, std::time_t &sunsetLocal) const
Compute sunrise/sunset for given local calendar date.
bool isDay(std::time_t nowLocal) const
Determine daylight state for a local instant.
bool getSunriseSunsetLocal(const std::tm &localDate, double latitudeDeg, double longitudeDeg, SunTimes::ZenithPreset preset, std::time_t &sunriseLocal, std::time_t &sunsetLocal)
Convenience wrapper to get sunrise/sunset for a date/location (LOCAL time_t outputs).
Time utility methods.