QTime
Hierarchy
-
↳ QTime
Index
Constructors
Properties
Methods
- addMSecs
- addSecs
- hour
- isNull
- isValid
- minute
- msec
- msecsSinceStartOfDay
- msecsTo
- second
- secsTo
- setHMS
- toString
- currentTime
- fromMSecsSinceStartOfDay
- fromQVariant
- fromString
- isValid
Constructors
constructor
+ new QTime(nativeOrHours?
: NativeElement | number, m?
: number, s
: number, ms
: number): QTime
Overrides Component.constructor
Parameters:
Name | Type | Default |
---|---|---|
nativeOrHours? | NativeElement | number | - |
m? | number | - |
s | number | 0 |
ms | number | 0 |
Returns: QTime
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
addMSecs
▸ addMSecs(ms
: number): QTime
Parameters:
Name | Type |
---|---|
ms | number |
Returns: QTime
addSecs
▸ addSecs(s
: number): QTime
Parameters:
Name | Type |
---|---|
s | number |
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:
Name | Type |
---|---|
t | QTime |
Returns: number
second
▸ second(): number
Returns: number
secsTo
▸ secsTo(t
: QTime): number
Parameters:
Name | Type |
---|---|
t | QTime |
Returns: number
setHMS
▸ setHMS(h
: number, m
: number, s
: number, ms
: number): boolean
Parameters:
Name | Type | Default |
---|---|---|
h | number | - |
m | number | - |
s | number | - |
ms | number | 0 |
Returns: boolean
toString
▸ toString(format
: string | DateFormat): string
Parameters:
Name | Type |
---|---|
format | string | DateFormat |
Returns: string
Static
currentTime
▸ currentTime(): QTime
Returns: QTime
Static
fromMSecsSinceStartOfDay
▸ fromMSecsSinceStartOfDay(msecs
: number): QTime
Parameters:
Name | Type |
---|---|
msecs | number |
Returns: QTime
Static
fromQVariant
▸ fromQVariant(variant
: QVariant): QTime
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QTime
Static
fromString
▸ fromString(timeString
: string, format
: string | DateFormat): QTime
Parameters:
Name | Type |
---|---|
timeString | string |
format | string | DateFormat |
Returns: QTime
Static
isValid
▸ isValid(h
: number, m
: number, s
: number, ms
: number): boolean
Parameters:
Name | Type | Default |
---|---|---|
h | number | - |
m | number | - |
s | number | - |
ms | number | 0 |
Returns: boolean