KHolidays Library
KHolidays::SunRiseSet Namespace Reference
Functions | |
KHOLIDAYS_EXPORT QTime | utcSunrise (const QDate &date, double latitude, double longitude) |
KHOLIDAYS_EXPORT QTime | utcSunset (const QDate &date, double latitude, double longitude) |
Detailed Description
Methods for determining the sunrise and sunset times for a given date and Earth location.
Function Documentation
Compute the sunrise time (UTC) for a date and Earth location.
- Parameters
-
date is any valid QDate. latitude is a floating point representing a valid latitude (-90.0, 90.0) longitude is a floating point representing a valid longitude (-180.0, 180.0)
- Returns
- the QTime of the sunrise in UTC.
- Note
- the latitude and longitude are truncated as needed to fit into their proper range.
Definition at line 173 of file sunriseset.cpp.
Compute the sunset time (UTC) for a date and Earth location.
- Parameters
-
date is any valid QDate. latitude is a floating point representing a valid latitude (-90.0, 90.0) longitude is a floating point representing a valid longitude (-180.0, 180.0)
- Returns
- the QTime of the sunset in UTC.
- Note
- the latitude and longitude are truncated as needed to fit into their proper range.
Definition at line 190 of file sunriseset.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.