Kstars
timezonerule.cpp
19TimeZoneRule::TimeZoneRule(const QString &smonth, const QString &sday, const QTime &stime, const QString &rmonth,
111 //1. simple integer; the calendar date...set Week=0 to indicate that Date is not the day of the week
242 else // Count forward from day 1, 8 or 15 (depending on StartWeek) until correct day of week is found
244 for (test = QDate(d.date().year(), d.date().month(), (StartWeek - 1) * 7 + 1); test.day() < 7 * StartWeek;
273 else //Count forward from day 1, 8 or 15 (depending on RevertWeek) until correct day of week is found
275 for (test = QDate(d.date().year(), d.date().month(), (RevertWeek - 1) * 7 + 1); test.day() < 7 * RevertWeek;
432void TimeZoneRule::reset_with_ltime(KStarsDateTime <ime, const double TZoffset, const bool time_runs_forward,
444 automaticDSTchange should only set to true if DST status changed due to running automatically over
445 a DST change time. If local time will changed manually the automaticDSTchange should always set to
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
This class provides the information needed to determine whether Daylight Savings Time (DST; a....
Definition timezonerule.h:48
KStarsDateTime nextDSTChange_LTime() const
Definition timezonerule.h:98
bool isDSTActive(const KStarsDateTime &date)
Determine whether DST is in effect for the given DateTime, according to this rule.
Definition timezonerule.cpp:283
void reset_with_ltime(KStarsDateTime <ime, const double TZoffset, const bool time_runs_forward, const bool automaticDSTchange=false)
Recalculate next dst change and if DST is active by a given local time with timezone offset and time ...
Definition timezonerule.cpp:432
QString i18n(const char *text, const TYPE &arg...)
KGuiItem ok()
KGuiItem test()
int day() const const
int month() const const
int year() const const
QDate date() const const
QTime time() const const
QString toString(QStringView format, QCalendar cal) const const
QString left(qsizetype n) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
int toInt(bool *ok, int base) const const
QString toLower() const const
bool isValid(int h, int m, int s, int ms)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:15:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.