Changeset View
Changeset View
Standalone View
Standalone View
src/astroseasons.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
56 | enum Season { | 56 | enum Season { | ||
57 | JuneSolstice, | 57 | JuneSolstice, | ||
58 | DecemberSolstice, | 58 | DecemberSolstice, | ||
59 | MarchEquinox, | 59 | MarchEquinox, | ||
60 | SeptemberEquinox, | 60 | SeptemberEquinox, | ||
61 | None | 61 | None | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | | ||||
65 | /** | ||||
66 | * Return the Gregorian date on which the season occurs in given year. | ||||
67 | * | ||||
68 | * @param season Season to return a date for | ||||
69 | * @param year Year for which to return the date | ||||
70 | * @since 5.50 | ||||
winterz: @since 5.xx | |||||
71 | */ | ||||
72 | static QDate seasonDate(Season season, int year); | ||||
73 | | ||||
64 | /** | 74 | /** | ||
65 | Return the season for the specified Gregorian date. | 75 | Return the season for the specified Gregorian date. | ||
66 | The enum 'None' is returned if one of the supported seasons | 76 | The enum 'None' is returned if one of the supported seasons | ||
67 | does not occur on the date. | 77 | does not occur on the date. | ||
68 | 78 | | |||
69 | @param date compute the season for the specified Gregorian date. | 79 | @param date compute the season for the specified Gregorian date. | ||
70 | */ | 80 | */ | ||
71 | static Season seasonAtDate(const QDate &date); | 81 | static Season seasonAtDate(const QDate &date); | ||
Show All 22 Lines |
@since 5.xx