libDwm-0.9.45
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.
 
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.
 

Detailed Description

Sunrise, Sunset and IsDaytime prototypes.

Function Documentation

◆ 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.

Here is the call graph for this function:

◆ 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.

Here is the call graph for this function: