KDECore
#include <kcalendarera_p.h>
Public Member Functions | |
KCalendarEra () | |
virtual | ~KCalendarEra () |
int | direction () const |
QDate | endDate () const |
QString | format () const |
bool | isInEra (const QDate &date) const |
bool | isValid () const |
QString | name (KLocale::DateTimeComponentFormat format=KLocale::DefaultComponentFormat) const |
int | offset () const |
int | sequence () const |
QDate | startDate () const |
int | year (int yearInEra) const |
int | yearInEra (int year) const |
Detailed Description
Class to hold details of a Calendar Era. Internal for now, but may later be made public if user configuration of Era formatting via System Settings is required, in which case a d-ptr will be needed. Details based on POSIX LC_TIME format.
license GNU-LGPL v.2 or later
- See also
- KCalendarSystem
Definition at line 43 of file kcalendarera_p.h.
Constructor & Destructor Documentation
◆ KCalendarEra()
|
explicit |
Definition at line 28 of file kcalendarera.cpp.
◆ ~KCalendarEra()
|
virtual |
Definition at line 32 of file kcalendarera.cpp.
Member Function Documentation
◆ direction()
int KCalendarEra::direction | ( | ) | const |
Definition at line 69 of file kcalendarera.cpp.
◆ endDate()
QDate KCalendarEra::endDate | ( | ) | const |
Definition at line 50 of file kcalendarera.cpp.
◆ format()
QString KCalendarEra::format | ( | ) | const |
Definition at line 64 of file kcalendarera.cpp.
◆ isInEra()
bool KCalendarEra::isInEra | ( | const QDate & | date | ) | const |
Definition at line 74 of file kcalendarera.cpp.
◆ isValid()
bool KCalendarEra::isValid | ( | ) | const |
Definition at line 36 of file kcalendarera.cpp.
◆ name()
QString KCalendarEra::name | ( | KLocale::DateTimeComponentFormat | format = KLocale::DefaultComponentFormat | ) | const |
Definition at line 55 of file kcalendarera.cpp.
◆ offset()
int KCalendarEra::offset | ( | ) | const |
◆ sequence()
int KCalendarEra::sequence | ( | ) | const |
◆ startDate()
QDate KCalendarEra::startDate | ( | ) | const |
Definition at line 45 of file kcalendarera.cpp.
◆ year()
int KCalendarEra::year | ( | int | yearInEra | ) | const |
Definition at line 88 of file kcalendarera.cpp.
◆ yearInEra()
int KCalendarEra::yearInEra | ( | int | year | ) | const |
Definition at line 83 of file kcalendarera.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.