QDate
Hierarchy
↳ QDate
Index
Constructors
Properties
Methods
- addDays
- addMonths
- addYears
- day
- dayOfWeek
- dayOfYear
- daysInMonth
- daysInYear
- daysTo
- isNull
- isValid
- month
- setDate
- toJulianDay
- toString
- year
- currentDate
- fromJulianDay
- fromQVariant
- fromString
- isLeapYear
- isValid
Constructors
constructor
+ new QDate(arg?
: NativeElement | number, month?
: number, day?
: number): QDate
Overrides Component.constructor
Parameters:
Name | Type |
---|---|
arg? | NativeElement | number |
month? | number |
day? | number |
Returns: QDate
Properties
native
• native: NativeElement | null
Inherited from Component.native
Methods
addDays
â–¸ addDays(ndays
: number): QDate
Parameters:
Name | Type |
---|---|
ndays | number |
Returns: QDate
addMonths
â–¸ addMonths(nmonths
: number): QDate
Parameters:
Name | Type |
---|---|
nmonths | number |
Returns: QDate
addYears
â–¸ addYears(nyears
: number): QDate
Parameters:
Name | Type |
---|---|
nyears | number |
Returns: QDate
day
â–¸ day(): number
Returns: number
dayOfWeek
â–¸ dayOfWeek(): number
Returns: number
dayOfYear
â–¸ dayOfYear(): number
Returns: number
daysInMonth
â–¸ daysInMonth(): number
Returns: number
daysInYear
â–¸ daysInYear(): number
Returns: number
daysTo
â–¸ daysTo(d
: QDate): number
Parameters:
Name | Type |
---|---|
d | QDate |
Returns: number
isNull
â–¸ isNull(): boolean
Returns: boolean
isValid
â–¸ isValid(): boolean
Returns: boolean
month
â–¸ month(): number
Returns: number
setDate
â–¸ setDate(year
: number, month
: number, day
: number): boolean
Parameters:
Name | Type |
---|---|
year | number |
month | number |
day | number |
Returns: boolean
toJulianDay
â–¸ toJulianDay(): number
Returns: number
toString
â–¸ toString(format
: string | DateFormat): string
Parameters:
Name | Type |
---|---|
format | string | DateFormat |
Returns: string
year
â–¸ year(): number
Returns: number
Static
currentDate
â–¸ currentDate(): QDate
Returns: QDate
Static
fromJulianDay
â–¸ fromJulianDay(jd
: number): QDate
Parameters:
Name | Type |
---|---|
jd | number |
Returns: QDate
Static
fromQVariant
â–¸ fromQVariant(variant
: QVariant): QDate
Parameters:
Name | Type |
---|---|
variant | QVariant |
Returns: QDate
Static
fromString
â–¸ fromString(dateString
: string, format
: string | DateFormat): QDate
Parameters:
Name | Type |
---|---|
dateString | string |
format | string | DateFormat |
Returns: QDate
Static
isLeapYear
â–¸ isLeapYear(year
: number): boolean
Parameters:
Name | Type |
---|---|
year | number |
Returns: boolean
Static
isValid
â–¸ isValid(year
: number, month
: number, day
: number): boolean
Parameters:
Name | Type |
---|---|
year | number |
month | number |
day | number |
Returns: boolean