libkholidays
LibKHolidays::AstroSeasons Class Reference
#include <astroseasons.h>
Detailed Description
Definition at line 52 of file astroseasons.h.
Public Types | |
| enum | Season { JuneSolstice, DecemberSolstice, MarchEquinox, SeptemberEquinox, None } |
Public Member Functions | |
| AstroSeasons () | |
| Season | season (const QDate &date) const |
| QString | seasonStr (const QDate &date) const |
| ~AstroSeasons () | |
Static Public Member Functions | |
| static QString | seasonName (Season season) |
Member Enumeration Documentation
Definition at line 55 of file astroseasons.h.
Constructor & Destructor Documentation
| AstroSeasons::AstroSeasons | ( | ) |
Definition at line 27 of file astroseasons.cpp.
| AstroSeasons::~AstroSeasons | ( | ) |
Definition at line 31 of file astroseasons.cpp.
Member Function Documentation
| AstroSeasons::Season AstroSeasons::season | ( | const QDate & | date | ) | const |
Return the season for the specified Gregorian date.
The enum 'None' is returned if one of the supported seasons does not occur on the date.
- Parameters:
-
date compute the season for the specified Gregorian date.
Definition at line 57 of file astroseasons.cpp.
| QString AstroSeasons::seasonName | ( | AstroSeasons::Season | season | ) | [static] |
Return the string representation of season.
- Parameters:
-
season astronomical season.
Definition at line 40 of file astroseasons.cpp.
Return the season as a text string for the specified date.
A null string is returned if one of the supported seasons does not occur on the date.
- Parameters:
-
date compute the season for the specified Gregorian date.
Definition at line 35 of file astroseasons.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference