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
QTime KHolidays::SunRiseSet::utcSunrise | ( | const QDate & | date, |
double | latitude, | ||
double | longitude | ||
) |
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.
QTime KHolidays::SunRiseSet::utcSunset | ( | const QDate & | date, |
double | latitude, | ||
double | longitude | ||
) |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.