KWin
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
suncalc.cpp File Reference
#include "suncalc.h"
#include "constants.h"
#include <QDateTime>
#include <QTimeZone>
#include <QtMath>

Go to the source code of this file.

Namespaces

namespace  KWin
 

Macros

#define TWILIGHT_NAUT   -12.0
 
#define TWILIGHT_CIVIL   -6.0
 
#define SUN_RISE_SET   -0.833
 
#define SUN_HIGH   2.0
 

Functions

QPair< QDateTime, QDateTime > KWin::calculateSunTimings (const QDateTime &dateTime, double latitude, double longitude, bool morning)
 

Macro Definition Documentation

◆ SUN_HIGH

#define SUN_HIGH   2.0

Definition at line 22 of file suncalc.cpp.

◆ SUN_RISE_SET

#define SUN_RISE_SET   -0.833

Definition at line 21 of file suncalc.cpp.

◆ TWILIGHT_CIVIL

#define TWILIGHT_CIVIL   -6.0

Definition at line 20 of file suncalc.cpp.

◆ TWILIGHT_NAUT

#define TWILIGHT_NAUT   -12.0

Definition at line 19 of file suncalc.cpp.