QTime

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QTime(arg?: NativeElement | number, m?: undefined | number, s: number, ms: number): QTime

Overrides Component.constructor

Parameters:

NameTypeDefault
arg?NativeElement | number-
m?undefined | number-
snumber0
msnumber0

Returns: QTime

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

addMSecs

addMSecs(ms: number): QTime

Parameters:

NameType
msnumber

Returns: QTime


addSecs

addSecs(s: number): QTime

Parameters:

NameType
snumber

Returns: QTime


elapsed

elapsed(): number

Returns: number


hour

hour(): number

Returns: number


isNull

isNull(): boolean

Returns: boolean


isValid

isValid(): boolean

Returns: boolean


minute

minute(): number

Returns: number


msec

msec(): number

Returns: number


msecsSinceStartOfDay

msecsSinceStartOfDay(): number

Returns: number


msecsTo

msecsTo(t: QTime): number

Parameters:

NameType
tQTime

Returns: number


restart

restart(): number

Returns: number


second

second(): number

Returns: number


secsTo

secsTo(t: QTime): number

Parameters:

NameType
tQTime

Returns: number


setHMS

setHMS(h: number, m: number, s: number, ms: number): boolean

Parameters:

NameTypeDefault
hnumber-
mnumber-
snumber-
msnumber0

Returns: boolean


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


start

start(): void

Returns: void


toString

toString(format: string | DateFormat): string

Parameters:

NameType
formatstring | DateFormat

Returns: string


Static currentTime

currentTime(): QTime

Returns: QTime


Static fromMSecsSinceStartOfDay

fromMSecsSinceStartOfDay(msecs: number): QTime

Parameters:

NameType
msecsnumber

Returns: QTime


Static fromQVariant

fromQVariant(variant: QVariant): QTime

Parameters:

NameType
variantQVariant

Returns: QTime


Static isValid

isValid(h: number, m: number, s: number, ms: number): boolean

Parameters:

NameTypeDefault
hnumber-
mnumber-
snumber-
msnumber0

Returns: boolean