libDwm-0.6.0
DwmSunriseSunset.hh File Reference

Sunrise, Sunset and IsDaytime prototypes. More...

#include "DwmTimeValue64.hh"
Include dependency graph for DwmSunriseSunset.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. More...
 
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. More...
 
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. More...
 

Detailed Description

Sunrise, Sunset and IsDaytime prototypes.

Function Documentation

◆ IsDaytime()

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()

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.

◆ Sunset()

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.