Sophie

Sophie

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

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

<class name="QTime" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; class provides clock time functions.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object contains a clock time, i.e&amp;#x2e; the number of hours, minutes, seconds, and milliseconds since midnight. It can read the current time from the system clock and measure a span of elapsed time. It provides functions for comparing times and for manipulating a time by adding a number of milliseconds.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; uses the 24-hour clock format; it has no concept of AM/PM. Unlike &lt;a href=&quot;QDateTime.html&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; knows nothing about time zones or daylight savings time (DST).&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object is typically created either by giving the number of hours, minutes, seconds, and milliseconds explicitly, or by using the static function &lt;a href=&quot;QTime.html#currentTime()&quot;&gt;&lt;tt&gt;currentTime&lt;/tt&gt;&lt;/a&gt;, which creates a &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object that contains the system's local time. Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QTime.html#hour()&quot;&gt;&lt;tt&gt;hour&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTime.html#minute()&quot;&gt;&lt;tt&gt;minute&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTime.html#second()&quot;&gt;&lt;tt&gt;second&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTime.html#msec()&quot;&gt;&lt;tt&gt;msec&lt;/tt&gt;&lt;/a&gt; functions provide access to the number of hours, minutes, seconds, and milliseconds of the time. The same information is provided in textual format by the &lt;a href=&quot;QTime.html#toString(com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; provides a full set of operators to compare two &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; objects. One time is considered smaller than another if it is earlier than the other.&lt;/p&gt;
&lt;p&gt;The time a given number of seconds or milliseconds later than a given time can be found using the &lt;a href=&quot;QTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#addMSecs(int)&quot;&gt;&lt;tt&gt;addMSecs&lt;/tt&gt;&lt;/a&gt; functions. Correspondingly, the number of seconds or milliseconds between two times can be found using &lt;a href=&quot;QTime.html#secsTo(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#msecsTo(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;msecsTo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; can be used to measure a span of elapsed time using the &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTime.html#elapsed()&quot;&gt;&lt;tt&gt;elapsed&lt;/tt&gt;&lt;/a&gt; functions.&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;QDateTime.html&quot;&gt;&lt;tt&gt;QDateTime&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTime()" doc="/**
&lt;p&gt;Constructs a null time object. A null time is identical to a &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt;(0, 0, 0, 0) (i.e&amp;#x2e;, midnight), except that &lt;a href=&quot;QTime.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTime.html#isValid(int, int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; return false.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#isValid(int, int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTime(int h, int m, int s, int ms)" doc="/**
&lt;p&gt;Constructs a time with hour &lt;tt&gt;h&lt;/tt&gt;, minute &lt;tt&gt;m&lt;/tt&gt;, seconds &lt;tt&gt;s&lt;/tt&gt; and milliseconds &lt;tt&gt;ms&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;h&lt;/tt&gt; must be in the range 0 to 23, &lt;tt&gt;m&lt;/tt&gt; and &lt;tt&gt;s&lt;/tt&gt; must be in the range 0 to 59, and &lt;tt&gt;ms&lt;/tt&gt; must be in the range 0 to 999.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#isValid(int, int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTime(int h, int m, int s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, 0). */"/>
    <method name="public QTime(int h, int m)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final com.trolltech.qt.core.QTime addMSecs(int ms)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object containing a time &lt;tt&gt;ms&lt;/tt&gt; milliseconds later than the time of this object (or earlier if &lt;tt&gt;ms&lt;/tt&gt; is negative).&lt;/p&gt;
&lt;p&gt;Note that the time will wrap if it passes midnight. See &lt;a href=&quot;QTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt; for an example.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#msecsTo(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;msecsTo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QTime addSecs(int secs)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object containing a time &lt;tt&gt;secs&lt;/tt&gt; seconds later than the time of this object (or earlier if &lt;tt&gt;secs&lt;/tt&gt; is negative).&lt;/p&gt;
&lt;p&gt;Note that the time will wrap if it passes midnight.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QTime n(14, 0, 0);                &lt;span class=&quot;comment&quot;&gt;// n == 14:00:00&lt;/span&gt;
    QTime t;
    t = n.addSecs(70);                &lt;span class=&quot;comment&quot;&gt;// t == 14:01:10&lt;/span&gt;
    t = n.addSecs(-70);               &lt;span class=&quot;comment&quot;&gt;// t == 13:58:50&lt;/span&gt;
    t = n.addSecs(10 * 60 * 60 + 5);  &lt;span class=&quot;comment&quot;&gt;// t == 00:00:05&lt;/span&gt;
    t = n.addSecs(-15 * 60 * 60);     &lt;span class=&quot;comment&quot;&gt;// t == 23:00:00&lt;/span&gt;&lt;/pre&gt;

@see &lt;a href=&quot;QTime.html#addMSecs(int)&quot;&gt;&lt;tt&gt;addMSecs&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#secsTo(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDateTime::addSecs&lt;/tt&gt; */"/>
    <method name="public final int elapsed()" doc="/**
&lt;p&gt;Returns the number of milliseconds that have elapsed since the last time &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; was called.&lt;/p&gt;
&lt;p&gt;Note that the counter wraps to zero 24 hours after the last call to &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or restart.&lt;/p&gt;
&lt;p&gt;Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If the system's clock setting has been changed since the last time &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; was called, the result is undefined. This can happen when daylight savings time is turned on or off.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int hour()" doc="/**
&lt;p&gt;Returns the hour part (0 to 23) of the time.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#minute()&quot;&gt;&lt;tt&gt;minute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#second()&quot;&gt;&lt;tt&gt;second&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#msec()&quot;&gt;&lt;tt&gt;msec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the time is null (i.e&amp;#x2e;, the &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; object was constructed using the default constructor); otherwise returns false. A null time is also an invalid time.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#isValid(int, 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 the time is valid; otherwise returns false. For example, the time 23:30:55.746 is valid, but 24:12:30 is invalid.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minute()" doc="/**
&lt;p&gt;Returns the minute part (0 to 59) of the time.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#hour()&quot;&gt;&lt;tt&gt;hour&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#second()&quot;&gt;&lt;tt&gt;second&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#msec()&quot;&gt;&lt;tt&gt;msec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int msec()" doc="/**
&lt;p&gt;Returns the millisecond part (0 to 999) of the time.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#hour()&quot;&gt;&lt;tt&gt;hour&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#minute()&quot;&gt;&lt;tt&gt;minute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#second()&quot;&gt;&lt;tt&gt;second&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int msecsTo(com.trolltech.qt.core.QTime arg__1)" doc="/**
&lt;p&gt;Returns the number of milliseconds from this time to &lt;tt&gt;arg__1&lt;/tt&gt;. If &lt;tt&gt;arg__1&lt;/tt&gt; is earlier than this time, the number of milliseconds returned is negative.&lt;/p&gt;
&lt;p&gt;Because &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; measures time within a day and there are 86400 seconds in a day, the result is always between -86400000 and 86400000 ms.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#secsTo(com.trolltech.qt.core.QTime)&quot;&gt;&lt;tt&gt;secsTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#addMSecs(int)&quot;&gt;&lt;tt&gt;addMSecs&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 int restart()" doc="/**
&lt;p&gt;Sets this time to the current time and returns the number of milliseconds that have elapsed since the last time &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; was called.&lt;/p&gt;
&lt;p&gt;This function is guaranteed to be atomic and is thus very handy for repeated measurements. Call &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; to start the first measurement, and &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; for each later measurement.&lt;/p&gt;
&lt;p&gt;Note that the counter wraps to zero 24 hours after the last call to &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If the system's clock setting has been changed since the last time &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt; was called, the result is undefined. This can happen when daylight savings time is turned on or off.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#start()&quot;&gt;&lt;tt&gt;start&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#elapsed()&quot;&gt;&lt;tt&gt;elapsed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#currentTime()&quot;&gt;&lt;tt&gt;currentTime&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int second()" doc="/**
&lt;p&gt;Returns the second part (0 to 59) of the time.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#hour()&quot;&gt;&lt;tt&gt;hour&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#minute()&quot;&gt;&lt;tt&gt;minute&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#msec()&quot;&gt;&lt;tt&gt;msec&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int secsTo(com.trolltech.qt.core.QTime arg__1)" doc="/**
&lt;p&gt;Returns the number of seconds from this time to &lt;tt&gt;arg__1&lt;/tt&gt;. If &lt;tt&gt;arg__1&lt;/tt&gt; is earlier than this time, the number of seconds returned is negative.&lt;/p&gt;
&lt;p&gt;Because &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; measures time within a day and there are 86400 seconds in a day, the result is always between -86400 and 86400.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#addSecs(int)&quot;&gt;&lt;tt&gt;addSecs&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QDateTime::secsTo&lt;/tt&gt; */"/>
    <method name="public final boolean setHMS(int h, int m, int s, int ms)" doc="/**
&lt;p&gt;Sets the time to hour &lt;tt&gt;h&lt;/tt&gt;, minute &lt;tt&gt;m&lt;/tt&gt;, seconds &lt;tt&gt;s&lt;/tt&gt; and milliseconds &lt;tt&gt;ms&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;h&lt;/tt&gt; must be in the range 0 to 23, &lt;tt&gt;m&lt;/tt&gt; and &lt;tt&gt;s&lt;/tt&gt; must be in the range 0 to 59, and &lt;tt&gt;ms&lt;/tt&gt; must be in the range 0 to 999. Returns true if the set time is valid; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTime.html#isValid(int, int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setHMS(int h, int m, int s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.html#setHMS(int, int, int, int)&quot;&gt;&lt;tt&gt;setHMS&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, 0). */"/>
    <method name="public final void start()" doc="/**
&lt;p&gt;Sets this time to the current time. This is practical for timing:&lt;/p&gt;
&lt;pre&gt;    QTime t;
    t.start();
    some_lengthy_task();
    qDebug(&amp;quot;Time elapsed: %d ms&amp;quot;, t.elapsed());&lt;/pre&gt;

@see &lt;a href=&quot;QTime.html#restart()&quot;&gt;&lt;tt&gt;restart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#elapsed()&quot;&gt;&lt;tt&gt;elapsed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTime.html#currentTime()&quot;&gt;&lt;tt&gt;currentTime&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString(java.lang.String format)" doc="/**
&lt;p&gt;Returns the time 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;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;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 or a&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 (assuming that the &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; is 14:13:09.042)&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;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;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;H:m:s a&lt;/td&gt;&lt;td&gt;14: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;QDateTime::toString&lt;/tt&gt; */"/>
    <method name="public final java.lang.String toString(com.trolltech.qt.core.Qt.DateFormat f)" doc="/**
&lt;p&gt;Returns the time as a string. Milliseconds are not included. The &lt;tt&gt;f&lt;/tt&gt; parameter determines the format of the string.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;f&lt;/tt&gt; is Qt::TextDate, the string format is HH:MM:SS; e.g&amp;#x2e; 1 second before midnight would be &amp;quot;23:59:59&amp;quot;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;f&lt;/tt&gt; is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates, which is also HH:MM:SS. (However, unlike that ISO 8601 specifies, dates before 1582 are handled as Julian dates, not Gregorian dates. This might change in a future version of Qt.)&lt;/p&gt;
&lt;p&gt;If &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;QTime.html#toString(com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(time, 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 &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;QTime.html#toString(com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(time, QLocale::ShortFormat);&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;f&lt;/tt&gt; is Qt::LocalDate, the string format depends on the locale settings of the system.&lt;/p&gt;
&lt;p&gt;If the datetime is invalid, an empty string will be returned.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.html#toString(com.trolltech.qt.core.Qt.DateFormat)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(Qt::TextDate). */"/>
    <method name="public native static com.trolltech.qt.core.QTime currentTime()" doc="/**
&lt;p&gt;Returns the current time as reported by the system clock.&lt;/p&gt;
&lt;p&gt;Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.&lt;/p&gt;
 */"/>
    <method name="public native static com.trolltech.qt.core.QTime fromString(java.lang.String s, java.lang.String format)" doc="/**
&lt;p&gt;Returns the &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&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 time 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;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;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&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 single quotes will also be treated as text and not be used as an expression.&lt;/p&gt;
&lt;pre&gt;    QTime time = QTime::fromString(&amp;quot;1mm12car00&amp;quot;, &amp;quot;m'mm'hcarss&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // time is 12:01.00&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If the format is not satisfied an invalid &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; is returned. Expressions that do not expect leading zeroes to be given (h, m, s and z) are greedy. This means that they will use two digits even if this puts them outside the range of accepted values and leaves too few digits for other sections. For example, the following string could have meant 00:07:10, but the m will grab two digits, resulting in an invalid time:&lt;/p&gt;
&lt;pre&gt;    QTime time = QTime::fromString(&amp;quot;00:710&amp;quot;, &amp;quot;hh:ms&amp;quot;); &lt;span class=&quot;comment&quot;&gt;// invalid&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Any field that is not represented in the format will be set to zero. For example:&lt;/p&gt;
&lt;pre&gt;    QTime time = QTime::fromString(&amp;quot;1.30&amp;quot;, &amp;quot;m.s&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // time is 00:01:30.000&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;QDateTime::toString() QTime::toString()&lt;/p&gt;

@see &lt;tt&gt;QDateTime::fromString&lt;/tt&gt;
@see &lt;tt&gt;QDate::fromString&lt;/tt&gt;
@see &lt;tt&gt;QDate::toString&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.core.QTime fromString(java.lang.String s, com.trolltech.qt.core.Qt.DateFormat f)" doc="/**
&lt;p&gt;Returns the time represented in the &lt;tt&gt;s&lt;/tt&gt; as a &lt;a href=&quot;QTime.html#QTime(int, int, int, int)&quot;&gt;&lt;tt&gt;QTime&lt;/tt&gt;&lt;/a&gt; using the &lt;tt&gt;f&lt;/tt&gt; given, or an invalid time if this is not possible.&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.QTime fromString(java.lang.String s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.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 boolean isValid(int h, int m, int s, int ms)" doc="/**
&lt;p&gt;Returns true if the specified time is valid; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The time is valid if &lt;tt&gt;h&lt;/tt&gt; is in the range 0 to 23, &lt;tt&gt;m&lt;/tt&gt; and &lt;tt&gt;s&lt;/tt&gt; are in the range 0 to 59, and &lt;tt&gt;ms&lt;/tt&gt; is in the range 0 to 999.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QTime::isValid(21, 10, 30); &lt;span class=&quot;comment&quot;&gt;// returns true&lt;/span&gt;
    QTime::isValid(22, 5,  62); &lt;span class=&quot;comment&quot;&gt;// returns false&lt;/span&gt;&lt;/pre&gt;
 */"/>
    <method name="public static boolean isValid(int h, int m, int s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTime.html#isValid(int, int, int, int)&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, 0). */"/>
</class>