QDate

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QDate(arg?: NativeElement | number, month?: undefined | number, day?: undefined | number): QDate

Overrides Component.constructor

Parameters:

NameType
arg?NativeElement | number
month?undefined | number
day?undefined | number

Returns: QDate

Properties

native

native: NativeElement

Overrides Component.native


nodeChildren

nodeChildren: Set‹Component

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

addDays

addDays(ndays: number): QDate

Parameters:

NameType
ndaysnumber

Returns: QDate


addMonths

addMonths(nmonths: number): QDate

Parameters:

NameType
nmonthsnumber

Returns: QDate


addYears

addYears(nyears: number): QDate

Parameters:

NameType
nyearsnumber

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:

NameType
dQDate

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:

NameType
yearnumber
monthnumber
daynumber

Returns: boolean


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


toJulianDay

toJulianDay(): number

Returns: number


toString

toString(format: string | DateFormat): string

Parameters:

NameType
formatstring | DateFormat

Returns: string


year

year(): number

Returns: number


Static currentDate

currentDate(): QDate

Returns: QDate


Static fromJulianDay

fromJulianDay(jd: number): QDate

Parameters:

NameType
jdnumber

Returns: QDate


Static fromQVariant

fromQVariant(variant: QVariant): QDate

Parameters:

NameType
variantQVariant

Returns: QDate


Static isLeapYear

isLeapYear(year: number): boolean

Parameters:

NameType
yearnumber

Returns: boolean


Static isValid

isValid(year: number, month: number, day: number): boolean

Parameters:

NameType
yearnumber
monthnumber
daynumber

Returns: boolean