QDateTime

Binding for C++ class QDateTime.

extern (C++) extern (C++)
@Q_RELOCATABLE_TYPE
struct QDateTime {}

Constructors

this
this()
Undocumented in source.
this
this(QDate date, QTime time, qt.core.namespace.TimeSpec spec, int offsetSeconds)
Undocumented in source.
this
this(QDate date, 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.
rawConstructor
typeof(this) rawConstructor()
Undocumented in source.
secsTo
qint64 secsTo(const(QDateTime) )
Undocumented in source.
setDate
void setDate(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(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.
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, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
toUTC
QDateTime toUTC()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create
typeof(this) create()
Undocumented in source. Be warned that the author may not have intended to support it.
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, 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 spec, int offsetFromUtc)
Undocumented in source.
fromSecsSinceEpoch
QDateTime fromSecsSinceEpoch(qint64 secs, const(QTimeZone) timeZone)
Undocumented in source.
fromString
QDateTime fromString(QStringView string, qt.core.namespace.DateFormat format)
Undocumented in source.
fromString
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.
fromString
QDateTime fromString(const(QString) string, QStringView format, QCalendar cal)
Undocumented in source.
fromString
QDateTime fromString(const(QString) string, qt.core.namespace.DateFormat format)
Undocumented in source. Be warned that the author may not have intended to support it.
fromString
QDateTime fromString(const(QString) string, const(QString) format, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta