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