<class name="QDate" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; class provides date functions.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object contains a calendar date, i.e&amp;#x2e; year, month, and day numbers, in the Gregorian calendar (Julian calendar for dates before 15 October 1582). It can read the current date from the system clock. It provides functions for comparing dates, and for manipulating dates. For example, it is possible to add and subtract days, months, and years to dates.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object is typically created either by giving the year, month, and day numbers explicitly, or by using the static function &lt;a href=&quot;QDate.html#currentDate()&quot;&gt;&lt;tt&gt;currentDate&lt;/tt&gt;&lt;/a&gt; that creates a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object containing the system clock's date. An explicit date can also be set using &lt;a href=&quot;QDate.html#setDate(int, int, int)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QDate.html#fromString(java.lang.String, com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt; function returns a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; given a string and a date format which is used to interpret the date within the string.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDate.html#year()&quot;&gt;&lt;tt&gt;year&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDate.html#month()&quot;&gt;&lt;tt&gt;month&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt; functions provide access to the year, month, and day numbers. Also, &lt;a href=&quot;QDate.html#dayOfWeek()&quot;&gt;&lt;tt&gt;dayOfWeek&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDate.html#dayOfYear()&quot;&gt;&lt;tt&gt;dayOfYear&lt;/tt&gt;&lt;/a&gt; functions are provided. The same information is provided in textual format by the &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDate.html#shortDayName(int)&quot;&gt;&lt;tt&gt;shortDayName&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDate.html#longDayName(int)&quot;&gt;&lt;tt&gt;longDayName&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDate.html#shortMonthName(int)&quot;&gt;&lt;tt&gt;shortMonthName&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QDate.html#longMonthName(int)&quot;&gt;&lt;tt&gt;longMonthName&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; provides a full set of operators to compare two &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; objects where smaller means earlier, and larger means later.&lt;/p&gt;
&lt;p&gt;You can increment (or decrement) a date by a given number of days using &lt;a href=&quot;QDate.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;. Similarly you can use &lt;a href=&quot;QDate.html#addMonths(int)&quot;&gt;&lt;tt&gt;addMonths&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDate.html#addYears(int)&quot;&gt;&lt;tt&gt;addYears&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QDate.html#daysTo(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;daysTo&lt;/tt&gt;&lt;/a&gt; function returns the number of days between two dates.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDate.html#daysInMonth()&quot;&gt;&lt;tt&gt;daysInMonth&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDate.html#daysInYear()&quot;&gt;&lt;tt&gt;daysInYear&lt;/tt&gt;&lt;/a&gt; functions return how many days there are in this date's month and year, respectively. The &lt;a href=&quot;QDate.html#isLeapYear(int)&quot;&gt;&lt;tt&gt;isLeapYear&lt;/tt&gt;&lt;/a&gt; function indicates whether this date is in a leap year.&lt;/p&gt;
&lt;p&gt;Note that the Gregorian calendar was introduced at different dates in different countries and regions. &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; uses the Gregorian calendar starting from 15 October 1582, and uses the Julian calendar for dates up to 4 October 1582.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/gui/QDateEdit.html&quot;&gt;&lt;tt&gt;QDateEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/gui/QDateTimeEdit.html&quot;&gt;&lt;tt&gt;QDateTimeEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/gui/QCalendarWidget.html&quot;&gt;&lt;tt&gt;QCalendarWidget&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QDate()" doc="/**
&lt;p&gt;Constructs a null date. Null dates are invalid.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#isValid(int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QDate(int y, int m, int d)" doc="/**
&lt;p&gt;Constructs a date with year &lt;tt&gt;y&lt;/tt&gt;, month &lt;tt&gt;m&lt;/tt&gt; and day &lt;tt&gt;d&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the specified date is invalid, the date is not set and &lt;a href=&quot;QDate.html#isValid(int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; returns false. Any date before 2 January 4713 B.C&amp;#x2e; is considered invalid.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Years 0 to 99 are interpreted as is. If you want to specify the year 2010, you must write 2010, not 10.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#isValid(int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDate addDays(int days)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object containing a date &lt;tt&gt;days&lt;/tt&gt; later than the date of this object (or earlier if &lt;tt&gt;days&lt;/tt&gt; is negative).&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#addMonths(int)&quot;&gt;&lt;tt&gt;addMonths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#addYears(int)&quot;&gt;&lt;tt&gt;addYears&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#daysTo(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;daysTo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDate addMonths(int months)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object containing a date &lt;tt&gt;months&lt;/tt&gt; later than the date of this object (or earlier if &lt;tt&gt;months&lt;/tt&gt; is negative).&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#addYears(int)&quot;&gt;&lt;tt&gt;addYears&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDate addYears(int years)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object containing a date &lt;tt&gt;years&lt;/tt&gt; later than the date of this object (or earlier if &lt;tt&gt;years&lt;/tt&gt; is negative).&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#addMonths(int)&quot;&gt;&lt;tt&gt;addMonths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int day()" doc="/**
&lt;p&gt;Returns the day of the month (1 to 31) of this date.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#year()&quot;&gt;&lt;tt&gt;year&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#month()&quot;&gt;&lt;tt&gt;month&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#dayOfWeek()&quot;&gt;&lt;tt&gt;dayOfWeek&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int dayOfWeek()" doc="/**
&lt;p&gt;Returns the weekday (1 to 7) for this date.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#dayOfYear()&quot;&gt;&lt;tt&gt;dayOfYear&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::DayOfWeek&lt;/tt&gt; */"/>
    <method name="public final int dayOfYear()" doc="/**
&lt;p&gt;Returns the day of the year (1 to 365) for this date.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#dayOfWeek()&quot;&gt;&lt;tt&gt;dayOfWeek&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int daysInMonth()" doc="/**
&lt;p&gt;Returns the number of days in the month (28 to 31) for this date.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#daysInYear()&quot;&gt;&lt;tt&gt;daysInYear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int daysInYear()" doc="/**
&lt;p&gt;Returns the number of days in the year (365 or 366) for this date.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#daysInMonth()&quot;&gt;&lt;tt&gt;daysInMonth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int daysTo(com.trolltech.qt.core.QDate arg__1)" doc="/**
&lt;p&gt;Returns the number of days from this date to &lt;tt&gt;arg__1&lt;/tt&gt; (which is negative if &lt;tt&gt;arg__1&lt;/tt&gt; is earlier than this date).&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QDate d1(1995, 5, 17);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; May 17, 1995
    QDate d2(1995, 5, 20);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; May 20, 1995
    d1.daysTo(d2);          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    d2.daysTo(d1);          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -3&lt;/pre&gt;

@see &lt;a href=&quot;QDate.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the date is null; otherwise returns false. A null date is invalid.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#isValid(int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if this date is valid; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int month()" doc="/**
&lt;p&gt;Returns the number corresponding to the month of this date, using the following convention:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 = &amp;quot;January&amp;quot;&lt;/li&gt;
&lt;li&gt;2 = &amp;quot;February&amp;quot;&lt;/li&gt;
&lt;li&gt;3 = &amp;quot;March&amp;quot;&lt;/li&gt;
&lt;li&gt;4 = &amp;quot;April&amp;quot;&lt;/li&gt;
&lt;li&gt;5 = &amp;quot;May&amp;quot;&lt;/li&gt;
&lt;li&gt;6 = &amp;quot;June&amp;quot;&lt;/li&gt;
&lt;li&gt;7 = &amp;quot;July&amp;quot;&lt;/li&gt;
&lt;li&gt;8 = &amp;quot;August&amp;quot;&lt;/li&gt;
&lt;li&gt;9 = &amp;quot;September&amp;quot;&lt;/li&gt;
&lt;li&gt;10 = &amp;quot;October&amp;quot;&lt;/li&gt;
&lt;li&gt;11 = &amp;quot;November&amp;quot;&lt;/li&gt;
&lt;li&gt;12 = &amp;quot;December&amp;quot;&lt;/li&gt;
&lt;/ul&gt;

@see &lt;a href=&quot;QDate.html#year()&quot;&gt;&lt;tt&gt;year&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final boolean setDate(int year, int month, int date)" doc="/**
&lt;p&gt;Sets the date's &lt;tt&gt;year&lt;/tt&gt;, &lt;tt&gt;month&lt;/tt&gt;, and &lt;tt&gt;date&lt;/tt&gt;. Returns true if the date is valid; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If the specified date is invalid, the &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; object is set to be invalid. Any date before 2 January 4713 B.C&amp;#x2e; is considered invalid.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#isValid(int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int toJulianDay()" doc="/**
&lt;p&gt;Converts the date to a Julian day.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#fromJulianDay(int)&quot;&gt;&lt;tt&gt;fromJulianDay&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString(com.trolltech.qt.core.Qt.DateFormat f)" doc="/**
&lt;p&gt;Returns the date as a string. The &lt;tt&gt;f&lt;/tt&gt; parameter determines the format of the string.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is Qt::TextDate, the string is formatted in the default way. QDate::shortDayName() and QDate::shortMonthName() are used to generate the string, so the day and month names will be localized names. An example of this formatting is &amp;quot;Sat May 20 1995&amp;quot;.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, taking the form YYYY-MM-DD, where YYYY is the year, MM is the month of the year (between 01 and 12), and DD is the day of the month between 01 and 31.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is Qt::LocalDate or Qt::SystemLocaleDate, the string format depends on the locale settings of the system. Identical to calling QLocale::system().&lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(date, QLocale::ShortFormat). &lt;i&gt;Qt::LocalDate has been deprecated, please use Qt::SystemLocaleDate instead.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is Qt::LocaleDate, the string format depends on the default application locale. This is the locale set with QLocale::setDefault(), or the system locale if no default locale has been set. Identical to calling QLocale().&lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(date, QLocale::ShortFormat);&lt;/p&gt;
&lt;p&gt;If the datetime is invalid, an empty string will be returned.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The Qt::ISODate format is only valid for years in the range 0 to 9999. This restriction may apply to Qt::LocalDate as well, depending on the locale settings.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#shortDayName(int)&quot;&gt;&lt;tt&gt;shortDayName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortMonthName(int)&quot;&gt;&lt;tt&gt;shortMonthName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(Qt::TextDate). */"/>
    <method name="public final java.lang.String toString(java.lang.String format)" doc="/**
&lt;p&gt;Returns the date as a string. The &lt;tt&gt;format&lt;/tt&gt; parameter determines the format of the result string.&lt;/p&gt;
&lt;p&gt;These expressions may be used:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Expression&lt;/th&gt;&lt;th&gt;Output&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;d&lt;/td&gt;&lt;td&gt;the day as number without a leading zero (1 to31)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;dd&lt;/td&gt;&lt;td&gt;the day as number with a leading zero (01 to 31)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;ddd&lt;/td&gt;&lt;td&gt;the abbreviated localized day name (e.g&amp;#x2e; 'Mon' to 'Sun'). Uses QDate::shortDayName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;dddd&lt;/td&gt;&lt;td&gt;the long localized day name (e.g&amp;#x2e; 'Qt::Monday' to 'Qt::Sunday'). Uses QDate::longDayName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;M&lt;/td&gt;&lt;td&gt;the month as number without a leading zero (1-12)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;MM&lt;/td&gt;&lt;td&gt;the month as number with a leading zero (01-12)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;MMM&lt;/td&gt;&lt;td&gt;the abbreviated localized month name (e.g&amp;#x2e; 'Jan' to 'Dec'). Uses QDate::shortMonthName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;MMMM&lt;/td&gt;&lt;td&gt;the long localized month name (e.g&amp;#x2e; 'January' to 'December'). Uses QDate::longMonthName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;yy&lt;/td&gt;&lt;td&gt;the year as two digit number (00 to 99)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;yyyy&lt;/td&gt;&lt;td&gt;the year as four digit number&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;All other input characters will be ignored. Any sequence of characters that are enclosed in singlequotes will be treated as text and not be used as an expression. Two consecutive singlequotes (&amp;quot;''&amp;quot;) are replaced by a singlequote in the output.&lt;/p&gt;
&lt;p&gt;Example format strings (assuming that the &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; is the 20 July 1969):&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Format&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;dd.MM.yyyy&lt;/td&gt;&lt;td&gt;20.07.1969&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;ddd MMMM d yy&lt;/td&gt;&lt;td&gt;Sun July 20 69&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;'The day is' dddd&lt;/td&gt;&lt;td&gt;The day is Sunday&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;If the datetime is invalid, an empty string will be returned.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function is only valid for years in the range 0 to 9999.&lt;/p&gt;

@see &lt;tt&gt;QDateTime::toString&lt;/tt&gt;
@see &lt;tt&gt;QTime::toString&lt;/tt&gt; */"/>
    <method name="public final int year()" doc="/**
&lt;p&gt;Returns the year of this date. Negative numbers indicate years before 1 A.D&amp;#x2e; = 1 C.E&amp;#x2e;, such that year -44 is 44 B.C&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#month()&quot;&gt;&lt;tt&gt;month&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#day()&quot;&gt;&lt;tt&gt;day&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDate currentDate()" doc="/**
&lt;p&gt;Returns the current date, as reported by the system clock.&lt;/p&gt;

@see &lt;tt&gt;QTime::currentTime&lt;/tt&gt;
@see &lt;tt&gt;QDateTime::currentDateTime&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDate fromJulianDay(int jd)" doc="/**
&lt;p&gt;Converts the Julian day &lt;tt&gt;jd&lt;/tt&gt; to a &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#toJulianDay()&quot;&gt;&lt;tt&gt;toJulianDay&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDate fromString(java.lang.String s, java.lang.String format)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; represented by the &lt;tt&gt;s&lt;/tt&gt;, using the &lt;tt&gt;format&lt;/tt&gt; given, or an invalid date if the string cannot be parsed.&lt;/p&gt;
&lt;p&gt;These expressions may be used for the format:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Expression&lt;/th&gt;&lt;th&gt;Output&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;d&lt;/td&gt;&lt;td&gt;The day as a number without a leading zero (1 to 31)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;dd&lt;/td&gt;&lt;td&gt;The day as a number with a leading zero (01 to 31)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;ddd&lt;/td&gt;&lt;td&gt;The abbreviated localized day name (e.g&amp;#x2e; 'Mon' to 'Sun'). Uses QDate::shortDayName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;dddd&lt;/td&gt;&lt;td&gt;The long localized day name (e.g&amp;#x2e; 'Monday' to 'Sunday'). Uses QDate::longDayName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;M&lt;/td&gt;&lt;td&gt;The month as a number without a leading zero (1 to 12)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;MM&lt;/td&gt;&lt;td&gt;The month as a number with a leading zero (01 to 12)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;MMM&lt;/td&gt;&lt;td&gt;The abbreviated localized month name (e.g&amp;#x2e; 'Jan' to 'Dec'). Uses QDate::shortMonthName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;MMMM&lt;/td&gt;&lt;td&gt;The long localized month name (e.g&amp;#x2e; 'January' to 'December'). Uses QDate::longMonthName().&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;yy&lt;/td&gt;&lt;td&gt;The year as two digit number (00 to 99)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;yyyy&lt;/td&gt;&lt;td&gt;The year as four digit number&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;All other input characters will be treated as text. Any sequence of characters that are enclosed in single quotes will also be treated as text and will not be used as an expression. For example:&lt;/p&gt;
&lt;pre&gt;    QDate date = QDate::fromString(&amp;quot;1MM12car2003&amp;quot;, &amp;quot;d'MM'MMcaryyyy&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; date is 1 December 2003&lt;/pre&gt;
&lt;p&gt;If the format is not satisfied, an invalid &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; is returned. The expressions that don't expect leading zeroes (d, M) will be greedy. This means that they will use two digits even if this will put them outside the accepted range of values and leaves too few digits for other sections. For example, the following format string could have meant January 30 but the M will grab two digits, resulting in an invalid date:&lt;/p&gt;
&lt;pre&gt;    QDate date = QDate::fromString(&amp;quot;130&amp;quot;, &amp;quot;Md&amp;quot;); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; invalid&lt;/pre&gt;
&lt;p&gt;For any field that is not represented in the format the following defaults are used:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Field&lt;/th&gt;&lt;th&gt;Default value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Year&lt;/td&gt;&lt;td&gt;1900&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Month&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Day&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The following examples demonstrate the default values:&lt;/p&gt;
&lt;pre&gt;    QDate::fromString(&amp;quot;1.30&amp;quot;, &amp;quot;M.d&amp;quot;);           &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; January 30 1900
    QDate::fromString(&amp;quot;20000110&amp;quot;, &amp;quot;yyyyMMdd&amp;quot;);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; January 10, 2000
    QDate::fromString(&amp;quot;20000110&amp;quot;, &amp;quot;yyyyMd&amp;quot;);    &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; January 10, 2000&lt;/pre&gt;

@see &lt;tt&gt;QDateTime::fromString&lt;/tt&gt;
@see &lt;tt&gt;QTime::fromString&lt;/tt&gt;
@see &lt;tt&gt;QDate::toString&lt;/tt&gt;
@see &lt;tt&gt;QDateTime::toString&lt;/tt&gt;
@see &lt;tt&gt;QTime::toString&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.core.QDate fromString(java.lang.String s, com.trolltech.qt.core.Qt.DateFormat f)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDate.html#QDate(int, int, int)&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; represented by the &lt;tt&gt;s&lt;/tt&gt;, using the &lt;tt&gt;f&lt;/tt&gt; given, or an invalid date if the string cannot be parsed.&lt;/p&gt;
&lt;p&gt;Note for Qt::TextDate: It is recommended that you use the English short month names (e.g&amp;#x2e; &amp;quot;Jan&amp;quot;). Although localized month names can also be used, they depend on the user's locale settings.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Qt::LocalDate cannot be used here.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QDate fromString(java.lang.String s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDate.html#fromString(java.lang.String, com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;s&lt;/tt&gt;, Qt::TextDate). */"/>
    <method name="public native static int gregorianToJulian(int y, int m, int d)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public native static boolean isLeapYear(int year)" doc="/**
&lt;p&gt;Returns true if the specified &lt;tt&gt;year&lt;/tt&gt; is a leap year; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public native static boolean isValid(int y, int m, int d)" doc="/**
&lt;p&gt;Returns true if the specified date (&lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, and &lt;tt&gt;d&lt;/tt&gt;) is valid; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QDate::isValid(2002, 5, 17);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; true
    QDate::isValid(2002, 2, 30);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; false (Feb 30 does not exist)
    QDate::isValid(2004, 2, 29);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; true (2004 is a leap year)
    QDate::isValid(2000, 2, 29);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; true (2000 is a leap year)
    QDate::isValid(2006, 2, 29);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; false (2006 is not a leap year)
    QDate::isValid(2100, 2, 29);  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; false (2100 is not a leap year)
    QDate::isValid(1202, 6, 6);   &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; true (even though 1202 is pre-Gregorian)&lt;/pre&gt;

@see &lt;a href=&quot;QDate.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#setDate(int, int, int)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String longDayName(int weekday)" doc="/**
&lt;p&gt;Returns the long name of the &lt;tt&gt;weekday&lt;/tt&gt; using the following convention:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 = &amp;quot;Monday&amp;quot;&lt;/li&gt;
&lt;li&gt;2 = &amp;quot;Tuesday&amp;quot;&lt;/li&gt;
&lt;li&gt;3 = &amp;quot;Wednesday&amp;quot;&lt;/li&gt;
&lt;li&gt;4 = &amp;quot;Thursday&amp;quot;&lt;/li&gt;
&lt;li&gt;5 = &amp;quot;Friday&amp;quot;&lt;/li&gt;
&lt;li&gt;6 = &amp;quot;Saturday&amp;quot;&lt;/li&gt;
&lt;li&gt;7 = &amp;quot;Sunday&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The day names will be localized according to the system's locale settings.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortDayName(int)&quot;&gt;&lt;tt&gt;shortDayName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortMonthName(int)&quot;&gt;&lt;tt&gt;shortMonthName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longMonthName(int)&quot;&gt;&lt;tt&gt;longMonthName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String longMonthName(int month)" doc="/**
&lt;p&gt;Returns the long name of the &lt;tt&gt;month&lt;/tt&gt; using the following convention:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 = &amp;quot;January&amp;quot;&lt;/li&gt;
&lt;li&gt;2 = &amp;quot;February&amp;quot;&lt;/li&gt;
&lt;li&gt;3 = &amp;quot;March&amp;quot;&lt;/li&gt;
&lt;li&gt;4 = &amp;quot;April&amp;quot;&lt;/li&gt;
&lt;li&gt;5 = &amp;quot;May&amp;quot;&lt;/li&gt;
&lt;li&gt;6 = &amp;quot;June&amp;quot;&lt;/li&gt;
&lt;li&gt;7 = &amp;quot;July&amp;quot;&lt;/li&gt;
&lt;li&gt;8 = &amp;quot;August&amp;quot;&lt;/li&gt;
&lt;li&gt;9 = &amp;quot;September&amp;quot;&lt;/li&gt;
&lt;li&gt;10 = &amp;quot;October&amp;quot;&lt;/li&gt;
&lt;li&gt;11 = &amp;quot;November&amp;quot;&lt;/li&gt;
&lt;li&gt;12 = &amp;quot;December&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The month names will be localized according to the system's locale settings.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortMonthName(int)&quot;&gt;&lt;tt&gt;shortMonthName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortDayName(int)&quot;&gt;&lt;tt&gt;shortDayName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longDayName(int)&quot;&gt;&lt;tt&gt;longDayName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String shortDayName(int weekday)" doc="/**
&lt;p&gt;Returns the name of the &lt;tt&gt;weekday&lt;/tt&gt; using the following convention:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 = &amp;quot;Mon&amp;quot;&lt;/li&gt;
&lt;li&gt;2 = &amp;quot;Tue&amp;quot;&lt;/li&gt;
&lt;li&gt;3 = &amp;quot;Wed&amp;quot;&lt;/li&gt;
&lt;li&gt;4 = &amp;quot;Thu&amp;quot;&lt;/li&gt;
&lt;li&gt;5 = &amp;quot;Fri&amp;quot;&lt;/li&gt;
&lt;li&gt;6 = &amp;quot;Sat&amp;quot;&lt;/li&gt;
&lt;li&gt;7 = &amp;quot;Sun&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The day names will be localized according to the system's locale settings.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortMonthName(int)&quot;&gt;&lt;tt&gt;shortMonthName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longMonthName(int)&quot;&gt;&lt;tt&gt;longMonthName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longDayName(int)&quot;&gt;&lt;tt&gt;longDayName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.lang.String shortMonthName(int month)" doc="/**
&lt;p&gt;Returns the name of the &lt;tt&gt;month&lt;/tt&gt; using the following convention:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 = &amp;quot;Jan&amp;quot;&lt;/li&gt;
&lt;li&gt;2 = &amp;quot;Feb&amp;quot;&lt;/li&gt;
&lt;li&gt;3 = &amp;quot;Mar&amp;quot;&lt;/li&gt;
&lt;li&gt;4 = &amp;quot;Apr&amp;quot;&lt;/li&gt;
&lt;li&gt;5 = &amp;quot;May&amp;quot;&lt;/li&gt;
&lt;li&gt;6 = &amp;quot;Jun&amp;quot;&lt;/li&gt;
&lt;li&gt;7 = &amp;quot;Jul&amp;quot;&lt;/li&gt;
&lt;li&gt;8 = &amp;quot;Aug&amp;quot;&lt;/li&gt;
&lt;li&gt;9 = &amp;quot;Sep&amp;quot;&lt;/li&gt;
&lt;li&gt;10 = &amp;quot;Oct&amp;quot;&lt;/li&gt;
&lt;li&gt;11 = &amp;quot;Nov&amp;quot;&lt;/li&gt;
&lt;li&gt;12 = &amp;quot;Dec&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The month names will be localized according to the system's locale settings.&lt;/p&gt;

@see &lt;a href=&quot;QDate.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longMonthName(int)&quot;&gt;&lt;tt&gt;longMonthName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#shortDayName(int)&quot;&gt;&lt;tt&gt;shortDayName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDate.html#longDayName(int)&quot;&gt;&lt;tt&gt;longDayName&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
