• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KHolidays Library

  • KHolidays
  • SunRiseSet
Functions
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
dateis any valid QDate.
latitudeis a floating point representing a valid latitude (-90.0, 90.0)
longitudeis 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
dateis any valid QDate.
latitudeis a floating point representing a valid latitude (-90.0, 90.0)
longitudeis 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

KDE's Doxygen guidelines are available online.

KHolidays Library

Skip menu "KHolidays Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal