Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1960

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QDateTime" doc="/**
&lt;p&gt;The &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; class provides date and time functions.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; object contains a calendar date and a clock time (a &amp;quot;datetime&amp;quot;). It is a combination of the &lt;a href=&quot;QDate.html&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTime.html&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; classes. It can read the current datetime from the system clock. It provides functions for comparing datetimes and for manipulating a datetime by adding a number of seconds, days, months, or years.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; object is typically created either by giving a date and time explicitly in the constructor, or by using the static function &lt;a href=&quot;QDateTime.html#currentDateTime()&quot;&gt;&lt;tt&gt;currentDateTime&lt;/tt&gt;&lt;/a&gt; that returns a &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; object set to the system clock's time. The date and time can be changed with &lt;a href=&quot;QDateTime.html#setDate(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDateTime.html#setTime(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;setTime&lt;/tt&gt;&lt;/a&gt;. A datetime can also be set using the &lt;a href=&quot;QDateTime.html#setTime_t(int)&quot;&gt;&lt;tt&gt;setTime_t&lt;/tt&gt;&lt;/a&gt; function that takes a POSIX-standard &amp;quot;number of seconds since 00:00:00 on January 1, 1970&amp;quot; value. The &lt;a href=&quot;QDateTime.html#fromString(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;fromString&lt;/tt&gt;&lt;/a&gt; function returns a &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt;, given a string and a date format used to interpret the date within the string.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QDateTime.html#date()&quot;&gt;&lt;tt&gt;date&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDateTime.html#time()&quot;&gt;&lt;tt&gt;time&lt;/tt&gt;&lt;/a&gt; functions provide access to the date and time parts of the datetime. The same information is provided in textual format by the &lt;a href=&quot;QDateTime.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; provides a full set of operators to compare two &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&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 datetime by a given number of seconds using &lt;a href=&quot;QDateTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt;, or days using &lt;a href=&quot;QDateTime.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;. Similarly you can use &lt;a href=&quot;QDateTime.html#addMonths(int)&quot;&gt;&lt;tt&gt;addMonths&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDateTime.html#addYears(int)&quot;&gt;&lt;tt&gt;addYears&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;daysTo&lt;/tt&gt;&lt;/a&gt; function returns the number of days between two datetimes, and &lt;a href=&quot;QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt; returns the number of seconds between two datetimes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; can store datetimes as local time&lt;/tt&gt; or as UTC&lt;/tt&gt;. QDateTime::currentDateTime() returns a &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; expressed as local time; use &lt;a href=&quot;QDateTime.html#toUTC()&quot;&gt;&lt;tt&gt;toUTC&lt;/tt&gt;&lt;/a&gt; to convert it to UTC. You can also use &lt;a href=&quot;QDateTime.html#timeSpec()&quot;&gt;&lt;tt&gt;timeSpec&lt;/tt&gt;&lt;/a&gt; to find out if a &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; object stores a UTC time or a local time. Operations such as &lt;a href=&quot;QDateTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt; are aware of daylight saving time (DST).&lt;/p&gt;

@see &lt;a href=&quot;QDate.html&quot;&gt;&lt;tt&gt;QDate&lt;/tt&gt;&lt;/a&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;%2E%2E/gui/QDateTimeEdit.html&quot;&gt;&lt;tt&gt;QDateTimeEdit&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QDateTime(com.trolltech.qt.core.QDateTime other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; datetime.&lt;/p&gt;
 */"/>
    <method name="public QDateTime(com.trolltech.qt.core.QDate arg__1)" doc="/**
&lt;p&gt;Constructs a datetime with the given &lt;tt&gt;arg__1&lt;/tt&gt;, and a valid time (00:00:00.000).&lt;/p&gt;
 */"/>
    <method name="public QDateTime()" doc="/**
&lt;p&gt;Constructs a null datetime (i.e&amp;#x2e; null date and null time). A null datetime is invalid, since the date is invalid.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QDateTime(com.trolltech.qt.core.QDate arg__1, com.trolltech.qt.core.QTime arg__2, com.trolltech.qt.core.Qt.TimeSpec spec)" doc="/**
&lt;p&gt;Constructs a datetime with the given &lt;tt&gt;arg__1&lt;/tt&gt; and &lt;tt&gt;arg__2&lt;/tt&gt;, using the time specification defined by &lt;tt&gt;spec&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is valid and &lt;tt&gt;arg__2&lt;/tt&gt; is not, the time will be set to midnight.&lt;/p&gt;
 */"/>
    <method name="public QDateTime(com.trolltech.qt.core.QDate arg__1, com.trolltech.qt.core.QTime arg__2)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;arg__2&lt;/tt&gt;, Qt::LocalTime). */"/>
    <method name="public final com.trolltech.qt.core.QDateTime addDays(int days)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; object containing a datetime &lt;tt&gt;days&lt;/tt&gt; days later than the datetime of this object (or earlier if &lt;tt&gt;days&lt;/tt&gt; is negative).&lt;/p&gt;

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

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

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

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

@see &lt;a href=&quot;QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;daysTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#addMonths(int)&quot;&gt;&lt;tt&gt;addMonths&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDate date()" doc="/**
&lt;p&gt;Returns the date part of the datetime.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#setDate(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#time()&quot;&gt;&lt;tt&gt;time&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#timeSpec()&quot;&gt;&lt;tt&gt;timeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int daysTo(com.trolltech.qt.core.QDateTime arg__1)" doc="/**
&lt;p&gt;Returns the number of days from this datetime to the &lt;tt&gt;arg__1&lt;/tt&gt; datetime. If the &lt;tt&gt;arg__1&lt;/tt&gt; datetime is earlier than this datetime, the value returned is negative.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#addDays(int)&quot;&gt;&lt;tt&gt;addDays&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if both the date and the time are null; otherwise returns false. A null datetime is invalid.&lt;/p&gt;

@see &lt;tt&gt;QDate::isNull&lt;/tt&gt;
@see &lt;tt&gt;QTime::isNull&lt;/tt&gt;
@see &lt;a href=&quot;QDateTime.html#isValid()&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 both the date and the time are valid; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QDate::isValid&lt;/tt&gt;
@see &lt;tt&gt;QTime::isValid&lt;/tt&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 int secsTo(com.trolltech.qt.core.QDateTime arg__1)" doc="/**
&lt;p&gt;Returns the number of seconds from this datetime to the &lt;tt&gt;arg__1&lt;/tt&gt; datetime. If the &lt;tt&gt;arg__1&lt;/tt&gt; datetime is earlier than this datetime, the value returned is negative.&lt;/p&gt;
&lt;p&gt;Before performing the comparison, the two datetimes are converted to Qt::UTC to ensure that the result is correct if one of the two datetimes has daylight saving time (DST) and the other doesn't.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QDateTime now = QDateTime::currentDateTime();
    QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0));
    qDebug(&amp;quot;There are %d seconds to Christmas&amp;quot;, now.secsTo(xmas));&lt;/pre&gt;

@see &lt;a href=&quot;QDateTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)&quot;&gt;&lt;tt&gt;daysTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTime::secsTo&lt;/tt&gt; */"/>
    <method name="public final void setDate(com.trolltech.qt.core.QDate date)" doc="/**
&lt;p&gt;Sets the date part of this datetime to &lt;tt&gt;date&lt;/tt&gt;. If no time is set, it is set to midnight.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#date()&quot;&gt;&lt;tt&gt;date&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setTime(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;setTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;setTimeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTime(com.trolltech.qt.core.QTime time)" doc="/**
&lt;p&gt;Sets the time part of this datetime to &lt;tt&gt;time&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#time()&quot;&gt;&lt;tt&gt;time&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setDate(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;setTimeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec spec)" doc="/**
&lt;p&gt;Sets the time specification used in this datetime to &lt;tt&gt;spec&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#timeSpec()&quot;&gt;&lt;tt&gt;timeSpec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setDate(com.trolltech.qt.core.QDate)&quot;&gt;&lt;tt&gt;setDate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setTime(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;setTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::TimeSpec&lt;/tt&gt; */"/>
    <method name="public final void setTime_t(int secsSince1Jan1970UTC)" doc="/**
&lt;p&gt;Sets the date and time given the number of &lt;tt&gt;secsSince1Jan1970UTC&lt;/tt&gt; that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC). On systems that do not support timezones this function will behave as if local time were Qt::UTC.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#toTime_t()&quot;&gt;&lt;tt&gt;toTime_t&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QTime time()" doc="/**
&lt;p&gt;Returns the time part of the datetime.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#setTime(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;setTime&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#date()&quot;&gt;&lt;tt&gt;date&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#timeSpec()&quot;&gt;&lt;tt&gt;timeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TimeSpec timeSpec()" doc="/**
&lt;p&gt;Returns the time specification of the datetime.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;setTimeSpec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#date()&quot;&gt;&lt;tt&gt;date&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#time()&quot;&gt;&lt;tt&gt;time&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::TimeSpec&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDateTime toLocalTime()" doc="/**
&lt;p&gt;Returns a datetime containing the date and time information in this datetime, but specified using the Qt::LocalTime definition.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;toTimeSpec&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 datetime as a string in the &lt;tt&gt;f&lt;/tt&gt; given.&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(), QDate::shortMonthName(), and QTime::toString() are used to generate the string, so the day and month names will be localized names. An example of this formatting is &amp;quot;Wed May 20 03:40:13 1998&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-DDTHH:MM:SS.&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;QDateTime.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(dateTime, 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;QDateTime.html#toString(java.lang.String)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(dateTime, 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;tt&gt;QDate::toString&lt;/tt&gt;
@see &lt;tt&gt;QTime::toString&lt;/tt&gt;
@see &lt;tt&gt;Qt::DateFormat&lt;/tt&gt; */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDateTime.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 datetime 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 for the date:&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 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 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-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;These expressions may be used for the time:&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;h&lt;/td&gt;&lt;td&gt;the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;hh&lt;/td&gt;&lt;td&gt;the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)&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 minute without a leading zero (0 to 59)&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 minute with a leading zero (00 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;s&lt;/td&gt;&lt;td&gt;the second without a leading zero (0 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;ss&lt;/td&gt;&lt;td&gt;the second with a leading zero (00 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;z&lt;/td&gt;&lt;td&gt;the milliseconds without leading zeroes (0 to 999)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;zzz&lt;/td&gt;&lt;td&gt;the milliseconds with leading zeroes (000 to 999)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;AP&lt;/td&gt;&lt;td&gt;use AM/PM display. &lt;i&gt;AP&lt;/i&gt; will be replaced by either &amp;quot;AM&amp;quot; or &amp;quot;PM&amp;quot;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;ap&lt;/td&gt;&lt;td&gt;use am/pm display. &lt;i&gt;ap&lt;/i&gt; will be replaced by either &amp;quot;am&amp;quot; or &amp;quot;pm&amp;quot;.&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 (assumed that the &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; is 21 May 2001 14:13:09):&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;21.05.2001&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;Tue May 21 01&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;hh:mm:ss.zzz&lt;/td&gt;&lt;td&gt;14:13:09.042&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;h:m:s ap&lt;/td&gt;&lt;td&gt;2:13:9 pm&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;

@see &lt;tt&gt;QDate::toString&lt;/tt&gt;
@see &lt;tt&gt;QTime::toString&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDateTime toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec spec)" doc="/**
&lt;p&gt;Returns a copy of this datetime configured to use the given time &lt;tt&gt;spec&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#timeSpec()&quot;&gt;&lt;tt&gt;timeSpec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#toUTC()&quot;&gt;&lt;tt&gt;toUTC&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#toLocalTime()&quot;&gt;&lt;tt&gt;toLocalTime&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int toTime_t()" doc="/**
&lt;p&gt;Returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC).&lt;/p&gt;
&lt;p&gt;On systems that do not support timezones, this function will behave as if local time were Qt::UTC.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#setTime_t(int)&quot;&gt;&lt;tt&gt;setTime_t&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QDateTime toUTC()" doc="/**
&lt;p&gt;Returns a datetime containing the date and time information in this datetime, but specified using the Qt::UTC definition.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;toTimeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDateTime currentDateTime()" doc="/**
&lt;p&gt;Returns the current datetime, as reported by the system clock, in the local time zone.&lt;/p&gt;

@see &lt;tt&gt;QDate::currentDate&lt;/tt&gt;
@see &lt;tt&gt;QTime::currentTime&lt;/tt&gt;
@see &lt;a href=&quot;QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;toTimeSpec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.QDateTime fromString(java.lang.String s, com.trolltech.qt.core.Qt.DateFormat f)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&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 datetime if this is not possible.&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; Note that Qt::LocalDate cannot be used here.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QDateTime fromString(java.lang.String s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QDateTime.html#fromString(java.lang.String, java.lang.String)&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 com.trolltech.qt.core.QDateTime fromString(java.lang.String s, java.lang.String format)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&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 datetime if the string cannot be parsed.&lt;/p&gt;
&lt;p&gt;These expressions may be used for the date part of the format string:&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 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 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-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;These expressions may be used for the time part of the format string:&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;h&lt;/td&gt;&lt;td&gt;the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;hh&lt;/td&gt;&lt;td&gt;the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;H&lt;/td&gt;&lt;td&gt;the hour without a leading zero (0 to 23, even with AM/PM display)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;HH&lt;/td&gt;&lt;td&gt;the hour with a leading zero (00 to 23, even with AM/PM display)&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 minute without a leading zero (0 to 59)&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 minute with a leading zero (00 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;s&lt;/td&gt;&lt;td&gt;the second without a leading zero (0 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;ss&lt;/td&gt;&lt;td&gt;the second with a leading zero (00 to 59)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;z&lt;/td&gt;&lt;td&gt;the milliseconds without leading zeroes (0 to 999)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;zzz&lt;/td&gt;&lt;td&gt;the milliseconds with leading zeroes (000 to 999)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;AP or A&lt;/td&gt;&lt;td&gt;interpret as an AM/PM time. &lt;i&gt;AP&lt;/i&gt; must be either &amp;quot;AM&amp;quot; or &amp;quot;PM&amp;quot;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;ap or a&lt;/td&gt;&lt;td&gt;Interpret as an AM/PM time. &lt;i&gt;ap&lt;/i&gt; must be either &amp;quot;am&amp;quot; or &amp;quot;pm&amp;quot;.&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 singlequotes will also be treated as text and not be used as an expression.&lt;/p&gt;
&lt;pre&gt;    QTime time1 = QTime::fromString(&amp;quot;131&amp;quot;, &amp;quot;HHh&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // time1 is 13:00:00&lt;/span&gt;
    QTime time1 = QTime::fromString(&amp;quot;1apA&amp;quot;, &amp;quot;1amAM&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // time1 is 01:00:00&lt;/span&gt;

    QDateTime dateTime2 = QDateTime::fromString(&amp;quot;M1d1y9800:01:02&amp;quot;,
                                                &amp;quot;'M'M'd'd'y'yyhh:mm:ss&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // dateTime is 1 January 1998 00:01:02&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If the format is not satisfied an invalid &lt;a href=&quot;QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; is returned. The expressions that don't have leading zeroes (d, M, h, m, s, z) will be greedy. This means that they will use two digits even if this will put them outside the range and/or leave too few digits for other sections.&lt;/p&gt;
&lt;pre&gt;    QDateTime dateTime = QDateTime::fromString(&amp;quot;130&amp;quot;, &amp;quot;Mm&amp;quot;); &lt;span class=&quot;comment&quot;&gt;// invalid&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;This could have meant 1 January 00:30.00 but the M will grab two digits.&lt;/p&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 (January)&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;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Hour&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Minute&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Second&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;    QDateTime dateTime = QDateTime::fromString(&amp;quot;1.30.1&amp;quot;, &amp;quot;M.d.s&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // dateTime is January 30 in the current year 00:00:01&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;QDateTime::toString() QTime::toString()&lt;/p&gt;

@see &lt;tt&gt;QDate::fromString&lt;/tt&gt;
@see &lt;tt&gt;QTime::fromString&lt;/tt&gt;
@see &lt;tt&gt;QDate::toString&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QDateTime fromTime_t(int secsSince1Jan1970UTC)" doc="/**
&lt;p&gt;Returns a datetime whose date and time are the number of &lt;tt&gt;secsSince1Jan1970UTC&lt;/tt&gt; that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC). On systems that do not support timezones, the time will be set as if local time were Qt::UTC.&lt;/p&gt;

@see &lt;a href=&quot;QDateTime.html#toTime_t()&quot;&gt;&lt;tt&gt;toTime_t&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTime.html#setTime_t(int)&quot;&gt;&lt;tt&gt;setTime_t&lt;/tt&gt;&lt;/a&gt; */"/>
</class>