KHolidays 5.109.0
sunriseset.h
1/*
2 This file is part of the kholidays library.
3
4 SPDX-FileCopyrightText: 2012 Allen Winter <winter@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KHOLIDAYS_SUNRISESET_H
10#define KHOLIDAYS_SUNRISESET_H
11
12#include "kholidays_export.h"
13#include <QTime>
14
15namespace KHolidays
16{
22namespace SunRiseSet
23{
34KHOLIDAYS_EXPORT QTime utcSunrise(const QDate &date, double latitude, double longitude);
35
45KHOLIDAYS_EXPORT QTime utcSunset(const QDate &date, double latitude, double longitude);
46
58KHOLIDAYS_EXPORT QTime utcDawn(const QDate &date, double latitude, double longitude);
59
71KHOLIDAYS_EXPORT QTime utcDusk(const QDate &date, double latitude, double longitude);
72
83KHOLIDAYS_EXPORT bool isPolarDay(const QDate &date, double latitude);
84
96KHOLIDAYS_EXPORT bool isPolarTwilight(const QDate &date, double latitude);
97
108KHOLIDAYS_EXPORT bool isPolarNight(const QDate &date, double latitude);
109}
110
111}
112
113#endif
bool isPolarTwilight(const QDate &date, double latitude)
Checks whether it is polar twilight on day date at latitude.
QTime utcSunset(const QDate &date, double latitude, double longitude)
Compute the sunset time (UTC) for a date and Earth location.
QTime utcSunrise(const QDate &date, double latitude, double longitude)
Compute the sunrise time (UTC) for a date and Earth location.
bool isPolarDay(const QDate &date, double latitude)
Checks whether it is polar day on day date at latitude.
bool isPolarNight(const QDate &date, double latitude)
Checks whether it is polar night on day date at latitude.
QTime utcDawn(const QDate &date, double latitude, double longitude)
Compute the civil dawn time (UTC) for a date and Earth location.
QTime utcDusk(const QDate &date, double latitude, double longitude)
Compute the civil dawn time (UTC) for a date and Earth location.