QTime

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

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

Overrides Component.constructor

Parameters:

NameTypeDefault
nativeOrHours?NativeElement | number-
m?number-
snumber0
msnumber0

Returns: QTime

Properties

native

• native: NativeElement | null

Inherited from Component.native

Methods

addMSecs

â–¸ addMSecs(ms: number): QTime

Parameters:

NameType
msnumber

Returns: QTime


addSecs

â–¸ addSecs(s: number): QTime

Parameters:

NameType
snumber

Returns: QTime


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


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


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 fromString

â–¸ fromString(timeString: string, format: string | DateFormat): QTime

Parameters:

NameType
timeStringstring
formatstring | DateFormat

Returns: QTime


Static isValid

â–¸ isValid(h: number, m: number, s: number, ms: number): boolean

Parameters:

NameTypeDefault
hnumber-
mnumber-
snumber-
msnumber0

Returns: boolean