57 bool isNull()
const {
return jd == 0; }
63 int dayOfWeek()
const;
64 int dayOfYear()
const;
65 int daysInMonth()
const;
66 int daysInYear()
const;
68 virtual QString monthName(
int month )
const;
69 virtual QString dayName(
int weekday )
const;
73 bool setYMD(
int y,
int m,
int d );
75 QDate addDays(
int days )
const;
76 int daysTo(
const QDate & )
const;
85 static QDate currentDate();
86 static bool isValid(
int y,
int m,
int d );
87 static bool leapYear(
int year );
90 static uint greg2jul(
int y,
int m,
int d );
91 static void jul2greg(
uint jd,
int &y,
int &m,
int &d );
93 static const char *
const monthNames[];
94 static const char *
const weekdayNames[];
97 #ifndef QT_NO_DATASTREAM 115 bool isValid()
const;
124 bool setHMS(
int h,
int m,
int s,
int ms=0 );
126 QTime addSecs(
int secs )
const;
127 int secsTo(
const QTime & )
const;
128 QTime addMSecs(
int ms )
const;
129 int msecsTo(
const QTime & )
const;
138 static QTime currentTime();
139 static bool isValid(
int h,
int m,
int s,
int ms=0 );
146 static bool currentTime(
QTime * );
150 #ifndef QT_NO_DATASTREAM 168 bool isNull()
const {
return d.isNull() &&
t.isNull(); }
169 bool isValid()
const {
return d.isValid() &&
t.isValid(); }
175 void setTime_t(
uint secsSince1Jan1970UTC );
196 #ifndef QT_NO_DATASTREAM 207 #ifndef QT_NO_DATASTREAM 214 #endif // QT_NO_DATASTREAM 216 #endif // QDATETIME_H
bool operator>(ScheduleID const left, ScheduleID const right) noexcept
The QDate class provides date functions.
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Q_EXPORT QDataStream & operator>>(QDataStream &, QDate &)
bool operator!=(ModuleKeyAndType const &a, ModuleKeyAndType const &b) noexcept
static constexpr double ms
The QTime class provides clock time functions.
bool operator<(ProductInfo const &a, ProductInfo const &b)
bool operator<=(ScheduleID const left, ScheduleID const right) noexcept
void setDate(const QDate &date)
void setTime(const QTime &time)
bool operator>(const QDate &d) const
bool operator>=(const QDate &d) const
bool operator==(const QTime &d) const
bool operator!=(const QTime &d) const
string toString(const TVector3 &xyz, int w=9)
The QDateTime class provides date and time functions.
bool operator<(const QTime &d) const
bool operator>(const QTime &d) const
bool operator<=(const QTime &d) const
The QDataStream class provides serialization of binary data to a QIODevice.
bool operator==(const QDate &d) const
bool operator>=(ScheduleID const left, ScheduleID const right) noexcept
bool operator<=(const QDate &d) const
bool operator<(const QDate &d) const
second_as<> second
Type of time stored in seconds, in double precision.
Q_EXPORT QDataStream & operator<<(QDataStream &, const QDate &)
bool operator>=(const QTime &d) const
bool operator==(ModuleKeyAndType const &a, ModuleKeyAndType const &b) noexcept
bool operator!=(const QDate &d) const