Kstars
timezonerule.cpp
19 TimeZoneRule::TimeZoneRule(const QString &smonth, const QString &sday, const QTime &stime, const QString &rmonth,
28 if (StartMonth && RevertMonth && initDay(sday, StartDay, StartWeek) && initDay(rday, RevertDay, RevertWeek) &&
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;
432 void 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:35
int month() const const
int toInt(bool *ok, int base) const const
QTime time() const const
int year() const const
bool isDSTActive(const KStarsDateTime &date)
Determine whether DST is in effect for the given DateTime, according to this rule.
Definition: timezonerule.cpp:283
bool isValid() const const
Definition: timezonerule.h:47
KGuiItem test()
QString i18n(const char *text, const TYPE &arg...)
int length() const const
int toInt(bool *ok, int base) const const
QString toLower() const const
QDate date() const const
KGuiItem ok()
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 toString(Qt::DateFormat format) const const
QString mid(int position, int n) const const
KStarsDateTime nextDSTChange_LTime() const
Definition: timezonerule.h:98
QStringRef leftRef(int n) const const
int day() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:58:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:58:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.