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