QDateTime

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QDateTime(arg?: NativeElement, time?: NativeElement): QDateTime

Overrides Component.constructor

Parameters:

NameType
arg?NativeElement
time?NativeElement

Returns: QDateTime

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

addDays

addDays(ndays: number): QDateTime

Parameters:

NameType
ndaysnumber

Returns: QDateTime


addMSecs

addMSecs(msecs: number): QDateTime

Parameters:

NameType
msecsnumber

Returns: QDateTime


addMonths

addMonths(nmonths: number): QDateTime

Parameters:

NameType
nmonthsnumber

Returns: QDateTime


addSecs

addSecs(s: number): QDateTime

Parameters:

NameType
snumber

Returns: QDateTime


addYears

addYears(nyears: number): QDateTime

Parameters:

NameType
nyearsnumber

Returns: QDateTime


date

date(): QDate

Returns: QDate


daysTo

daysTo(other: QDateTime): number

Parameters:

NameType
otherQDateTime

Returns: number


isDaylightTime

isDaylightTime(): boolean

Returns: boolean


isNull

isNull(): boolean

Returns: boolean


isValid

isValid(): boolean

Returns: boolean


msecsTo

msecsTo(other: QDateTime): number

Parameters:

NameType
otherQDateTime

Returns: number


offsetFromUtc

offsetFromUtc(): number

Returns: number


secsTo

secsTo(other: QDateTime): number

Parameters:

NameType
otherQDateTime

Returns: number


setDate

setDate(date: QDate): void

Parameters:

NameType
dateQDate

Returns: void


setMSecsSinceEpoch

setMSecsSinceEpoch(msecs: number): void

Parameters:

NameType
msecsnumber

Returns: void


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setOffsetFromUtc

setOffsetFromUtc(offsetSeconds: number): void

Parameters:

NameType
offsetSecondsnumber

Returns: void


setSecsSinceEpoch

setSecsSinceEpoch(secs: number): void

Parameters:

NameType
secsnumber

Returns: void


setTime

setTime(time: QTime): void

Parameters:

NameType
timeQTime

Returns: void


setTimeSpec

setTimeSpec(spec: TimeSpec): void

Parameters:

NameType
specTimeSpec

Returns: void


time

time(): QTime

Returns: QTime


timeSpec

timeSpec(): TimeSpec

Returns: TimeSpec


toLocalTime

toLocalTime(): QDateTime

Returns: QDateTime


toMSecsSinceEpoch

toMSecsSinceEpoch(): number

Returns: number


toOffsetFromUtc

toOffsetFromUtc(offsetSeconds: number): QDateTime

Parameters:

NameType
offsetSecondsnumber

Returns: QDateTime


toSecsSinceEpoch

toSecsSinceEpoch(): number

Returns: number


toString

toString(format: string | DateFormat): string

Parameters:

NameType
formatstring | DateFormat

Returns: string


toTimeSpec

toTimeSpec(spec: TimeSpec): QDateTime

Parameters:

NameType
specTimeSpec

Returns: QDateTime


toUTC

toUTC(): QDateTime

Returns: QDateTime


Static currentDateTime

currentDateTime(): QDateTime

Returns: QDateTime


Static currentDateTimeUtc

currentDateTimeUtc(): QDateTime

Returns: QDateTime


Static currentMSecsSinceEpoch

currentMSecsSinceEpoch(): number

Returns: number


Static currentSecsSinceEpoch

currentSecsSinceEpoch(): number

Returns: number


Static fromQVariant

fromQVariant(variant: QVariant): QDateTime

Parameters:

NameType
variantQVariant

Returns: QDateTime