QDateTime

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@Q_MOVABLE_TYPE
@QMetaType.Type.QDateTime
struct QDateTime {}

Constructors

this
this(const(QDate) )
Undocumented in source.
this
this(const(QDate) , const(QTime) , qt.core.namespace.TimeSpec spec)
Undocumented in source.
this
this(const(QDate) date, const(QTime) time, qt.core.namespace.TimeSpec spec, int offsetSeconds)
Undocumented in source.
this
this(const(QDate) date, const(QTime) time, const(QTimeZone) timeZone)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

YearRange
enum YearRange
Undocumented in source.

Functions

addDays
QDateTime addDays(qint64 days)
Undocumented in source.
addMSecs
QDateTime addMSecs(qint64 msecs)
Undocumented in source.
addMonths
QDateTime addMonths(int months)
Undocumented in source.
addSecs
QDateTime addSecs(qint64 secs)
Undocumented in source.
addYears
QDateTime addYears(int years)
Undocumented in source.
date
QDate date()
Undocumented in source.
daysTo
qint64 daysTo(const(QDateTime) )
Undocumented in source.
isDaylightTime
bool isDaylightTime()
Undocumented in source.
isNull
bool isNull()
Undocumented in source.
isValid
bool isValid()
Undocumented in source.
msecsTo
qint64 msecsTo(const(QDateTime) )
Undocumented in source.
offsetFromUtc
int offsetFromUtc()
Undocumented in source.
secsTo
qint64 secsTo(const(QDateTime) )
Undocumented in source.
setDate
void setDate(const(QDate) date)
Undocumented in source.
setMSecsSinceEpoch
void setMSecsSinceEpoch(qint64 msecs)
Undocumented in source.
setOffsetFromUtc
void setOffsetFromUtc(int offsetSeconds)
Undocumented in source.
setSecsSinceEpoch
void setSecsSinceEpoch(qint64 secs)
Undocumented in source.
setTime
void setTime(const(QTime) time)
Undocumented in source.
setTimeSpec
void setTimeSpec(qt.core.namespace.TimeSpec spec)
Undocumented in source.
setTimeZone
void setTimeZone(const(QTimeZone) toZone)
Undocumented in source.
setTime_t
void setTime_t(uint secsSince1Jan1970UTC)
Undocumented in source.
setUtcOffset
void setUtcOffset(int seconds)
Undocumented in source.
time
QTime time()
Undocumented in source.
timeSpec
qt.core.namespace.TimeSpec timeSpec()
Undocumented in source.
timeZone
QTimeZone timeZone()
Undocumented in source.
timeZoneAbbreviation
QString timeZoneAbbreviation()
Undocumented in source.
toLocalTime
QDateTime toLocalTime()
Undocumented in source. Be warned that the author may not have intended to support it.
toMSecsSinceEpoch
qint64 toMSecsSinceEpoch()
Undocumented in source.
toOffsetFromUtc
QDateTime toOffsetFromUtc(int offsetSeconds)
Undocumented in source.
toSecsSinceEpoch
qint64 toSecsSinceEpoch()
Undocumented in source.
toString
QString toString(qt.core.namespace.DateFormat format)
Undocumented in source.
toString
QString toString(const(QString) format)
Undocumented in source.
toString
QString toString(const(QString) format, QCalendar cal)
Undocumented in source.
toString
QString toString(QStringView format)
Undocumented in source.
toString
QString toString(QStringView format, QCalendar cal)
Undocumented in source.
toTimeSpec
QDateTime toTimeSpec(qt.core.namespace.TimeSpec spec)
Undocumented in source.
toTimeZone
QDateTime toTimeZone(const(QTimeZone) toZone)
Undocumented in source.
toTime_t
uint toTime_t()
Undocumented in source.
toUTC
QDateTime toUTC()
Undocumented in source. Be warned that the author may not have intended to support it.
utcOffset
int utcOffset()
Undocumented in source.

Static functions

currentDateTime
QDateTime currentDateTime()
Undocumented in source.
currentDateTimeUtc
QDateTime currentDateTimeUtc()
Undocumented in source.
currentMSecsSinceEpoch
qint64 currentMSecsSinceEpoch()
Undocumented in source.
currentSecsSinceEpoch
qint64 currentSecsSinceEpoch()
Undocumented in source.
fromMSecsSinceEpoch
QDateTime fromMSecsSinceEpoch(qint64 msecs)
Undocumented in source.
fromMSecsSinceEpoch
QDateTime fromMSecsSinceEpoch(qint64 msecs, qt.core.namespace.TimeSpec spec, int offsetFromUtc)
Undocumented in source.
fromMSecsSinceEpoch
QDateTime fromMSecsSinceEpoch(qint64 msecs, const(QTimeZone) timeZone)
Undocumented in source.
fromSecsSinceEpoch
QDateTime fromSecsSinceEpoch(qint64 secs, qt.core.namespace.TimeSpec spe, int offsetFromUtc)
Undocumented in source.
fromSecsSinceEpoch
QDateTime fromSecsSinceEpoch(qint64 secs, const(QTimeZone) timeZone)
Undocumented in source.
fromString
QDateTime fromString(const(QString) s, qt.core.namespace.DateFormat f)
Undocumented in source.
fromString
QDateTime fromString(const(QString) s, const(QString) format)
Undocumented in source.
fromString
QDateTime fromString(const(QString) s, const(QString) format, QCalendar cal)
Undocumented in source.
fromTime_t
QDateTime fromTime_t(uint secsSince1Jan1970UTC)
Undocumented in source.
fromTime_t
QDateTime fromTime_t(uint secsSince1Jan1970UTC, qt.core.namespace.TimeSpec spec, int offsetFromUtc)
Undocumented in source.
fromTime_t
QDateTime fromTime_t(uint secsSince1Jan1970UTC, const(QTimeZone) timeZone)
Undocumented in source.

Meta