timeUtils.h File Reference

Header of the dpyTime namespace. More...

#include <string>
#include <ctime>
Include dependency graph for timeUtils.h:

Go to the source code of this file.

Classes

class  SunTimes
 Sunrise/Sunset calculator (NOAA-style) More...
 

Namespaces

 dpyTime
 Time utility methods.
 

Functions

std::string getLocalTimeStamp ()
 Get local time as a timestamp string. More...
 
struct tm getLocalTime ()
 Get local time. More...
 
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). More...
 
bool getSunriseSunsetLocal (std::time_t nowLocal, double latitudeDeg, double longitudeDeg, SunTimes::ZenithPreset preset, std::time_t &sunriseLocal, std::time_t &sunsetLocal)
 Convenience wrapper to get the sunrise/sunset interval that applies to a local instant. More...
 
bool isDayLocal (std::time_t nowLocal, double latitudeDeg, double longitudeDeg, SunTimes::ZenithPreset preset)
 Convenience wrapper: is it day at nowLocal for given location/preset? More...