Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:57:36 CEST 2007 -->
<TITLE>
QDateTime
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.core.QDateTime class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QDateTime";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QDateTime.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QDateTime.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.core</FONT>
<BR>
Class QDateTime</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.core.QDateTime</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A>, java.lang.Comparable</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QDateTime</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A><DT>implements java.lang.Comparable</DL>
</PRE>

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

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QDate.html"><tt>QDate</tt></a>, 
<a href="QTime.html"><tt>QTime</tt></a>, 
<a href="%2E%2E/gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#QDateTime()">QDateTime</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a null datetime (i.e&#x2e; null date and null time).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#QDateTime(com.trolltech.qt.core.QDate)">QDateTime</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a datetime with the given <tt>arg__1</tt>, and a valid time (00.00:00.000).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime)">QDateTime</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1,
          <A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;arg__2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a>(<tt>arg__1</tt>, <tt>arg__2</tt>, Qt::LocalTime).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)">QDateTime</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1,
          <A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;arg__2,
          <A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a datetime with the given <tt>arg__1</tt> and <tt>arg__2</tt>, using the time specification defined by <tt>spec</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#QDateTime(com.trolltech.qt.core.QDateTime)">QDateTime</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a copy of the <tt>other</tt> datetime.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#addDays(int)">addDays</A></B>(int&nbsp;days)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>days</tt> days later than the datetime of this object (or earlier if <tt>days</tt> is negative).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#addMonths(int)">addMonths</A></B>(int&nbsp;months)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>months</tt> months later than the datetime of this object (or earlier if <tt>months</tt> is negative).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#addMSecs(long)">addMSecs</A></B>(long&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>msecs</tt> miliseconds later than the datetime of this object (or earlier if <tt>msecs</tt> is negative).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#addSecs(int)">addSecs</A></B>(int&nbsp;secs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>secs</tt> seconds later than the datetime of this object (or earlier if <tt>secs</tt> is negative).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#addYears(int)">addYears</A></B>(int&nbsp;years)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>years</tt> years later than the datetime of this object (or earlier if <tt>years</tt> is negative).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#currentDateTime()">currentDateTime</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current datetime, as reported by the system clock, in the local time zone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#date()">date</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the date part of the datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)">daysTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of days from this datetime to the <tt>arg__1</tt> datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QDateTime instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#fromString(java.lang.String)">fromString</A></B>(java.lang.String&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QDateTime.html#fromString(java.lang.String, java.lang.String)"><tt>fromString</tt></a>(<tt>s</tt>, Qt::TextDate).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#fromString(java.lang.String, com.trolltech.qt.core.Qt.DateFormat)">fromString</A></B>(java.lang.String&nbsp;s,
           <A HREF="../../../../com/trolltech/qt/core/Qt.DateFormat.html" title="enum in com.trolltech.qt.core">Qt.DateFormat</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> represented by the <tt>s</tt>, using the <tt>f</tt> given, or an invalid datetime if this is not possible.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#fromString(java.lang.String, java.lang.String)">fromString</A></B>(java.lang.String&nbsp;s,
           java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> represented by the <tt>s</tt>, using the <tt>format</tt> given, or an invalid datetime if the string cannot be parsed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#fromTime_t(int)">fromTime_t</A></B>(int&nbsp;secsSince1Jan1970UTC)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a datetime whose date and time are the number of <tt>secsSince1Jan1970UTC</tt> that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#isNull()">isNull</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if both the date and the time are null; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#isValid()">isValid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if both the date and the time are valid; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#nativePointerArray(com.trolltech.qt.core.QDateTime[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QDateTime array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QDateTime from arg__1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)">secsTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of seconds from this datetime to the <tt>arg__1</tt> datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#setDate(com.trolltech.qt.core.QDate)">setDate</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;date)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the date part of this datetime to <tt>date</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#setTime_t(int)">setTime_t</A></B>(int&nbsp;secsSince1Jan1970UTC)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the date and time given the number of <tt>secsSince1Jan1970UTC</tt> that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#setTime(com.trolltech.qt.core.QTime)">setTime</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;time)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the time part of this datetime to <tt>time</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)">setTimeSpec</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the time specification used in this datetime to <tt>spec</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#time()">time</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the time part of the datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#timeSpec()">timeSpec</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the time specification of the datetime.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toLocalTime()">toLocalTime</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a datetime containing the date and time information in this datetime, but specified using the Qt::LocalTime definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QDateTime.html#toString(java.lang.String)"><tt>toString</tt></a>(Qt::TextDate).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toString(com.trolltech.qt.core.Qt.DateFormat)">toString</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.DateFormat.html" title="enum in com.trolltech.qt.core">Qt.DateFormat</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the datetime as a string in the <tt>f</tt> given.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toString(java.lang.String)">toString</A></B>(java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the datetime as a string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toTime_t()">toTime_t</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)">toTimeSpec</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of this datetime configured to use the given time <tt>spec</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#toUTC()">toUTC</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a datetime containing the date and time information in this datetime, but specified using the Qt::UTC definition.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QDateTime.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQDateTime to arg__1.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QDateTime(com.trolltech.qt.core.QDateTime)"><!-- --></A><H3>
QDateTime</H3>
<PRE>
public <B>QDateTime</B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;other)</PRE>
<DL>
<DD><p>Constructs a copy of the <tt>other</tt> datetime.</p>
<P>
</DL>
<HR>

<A NAME="QDateTime(com.trolltech.qt.core.QDate)"><!-- --></A><H3>
QDateTime</H3>
<PRE>
public <B>QDateTime</B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Constructs a datetime with the given <tt>arg__1</tt>, and a valid time (00.00:00.000).</p>
<P>
</DL>
<HR>

<A NAME="QDateTime()"><!-- --></A><H3>
QDateTime</H3>
<PRE>
public <B>QDateTime</B>()</PRE>
<DL>
<DD><p>Constructs a null datetime (i.e&#x2e; null date and null time). A null datetime is invalid, since the date is invalid.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#isValid()"><tt>isValid</tt></a></DL>
</DL>
<HR>

<A NAME="QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime)"><!-- --></A><H3>
QDateTime</H3>
<PRE>
public <B>QDateTime</B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1,
                 <A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;arg__2)</PRE>
<DL>
<DD><p>Equivalent to <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a>(<tt>arg__1</tt>, <tt>arg__2</tt>, Qt::LocalTime).
<P>
</DL>
<HR>

<A NAME="QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><!-- --></A><H3>
QDateTime</H3>
<PRE>
public <B>QDateTime</B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;arg__1,
                 <A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;arg__2,
                 <A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</PRE>
<DL>
<DD><p>Constructs a datetime with the given <tt>arg__1</tt> and <tt>arg__2</tt>, using the time specification defined by <tt>spec</tt>.</p>
<p>If <tt>arg__1</tt> is valid and <tt>arg__2</tt> is not, the time will be set to midnight.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="addDays(int)"><!-- --></A><H3>
addDays</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>addDays</B>(int&nbsp;days)</PRE>
<DL>
<DD><p>Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>days</tt> days later than the datetime of this object (or earlier if <tt>days</tt> is negative).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)"><tt>daysTo</tt></a>, 
<a href="QDateTime.html#addMonths(int)"><tt>addMonths</tt></a>, 
<a href="QDateTime.html#addYears(int)"><tt>addYears</tt></a>, 
<a href="QDateTime.html#addSecs(int)"><tt>addSecs</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addMSecs(long)"><!-- --></A><H3>
addMSecs</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>addMSecs</B>(long&nbsp;msecs)</PRE>
<DL>
<DD><p>Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>msecs</tt> miliseconds later than the datetime of this object (or earlier if <tt>msecs</tt> is negative).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#addSecs(int)"><tt>addSecs</tt></a>, 
<a href="QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)"><tt>secsTo</tt></a>, 
<a href="QDateTime.html#addDays(int)"><tt>addDays</tt></a>, 
<a href="QDateTime.html#addMonths(int)"><tt>addMonths</tt></a>, 
<a href="QDateTime.html#addYears(int)"><tt>addYears</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addMonths(int)"><!-- --></A><H3>
addMonths</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>addMonths</B>(int&nbsp;months)</PRE>
<DL>
<DD><p>Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>months</tt> months later than the datetime of this object (or earlier if <tt>months</tt> is negative).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)"><tt>daysTo</tt></a>, 
<a href="QDateTime.html#addDays(int)"><tt>addDays</tt></a>, 
<a href="QDateTime.html#addYears(int)"><tt>addYears</tt></a>, 
<a href="QDateTime.html#addSecs(int)"><tt>addSecs</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addSecs(int)"><!-- --></A><H3>
addSecs</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>addSecs</B>(int&nbsp;secs)</PRE>
<DL>
<DD><p>Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>secs</tt> seconds later than the datetime of this object (or earlier if <tt>secs</tt> is negative).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#addMSecs(long)"><tt>addMSecs</tt></a>, 
<a href="QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)"><tt>secsTo</tt></a>, 
<a href="QDateTime.html#addDays(int)"><tt>addDays</tt></a>, 
<a href="QDateTime.html#addMonths(int)"><tt>addMonths</tt></a>, 
<a href="QDateTime.html#addYears(int)"><tt>addYears</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addYears(int)"><!-- --></A><H3>
addYears</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>addYears</B>(int&nbsp;years)</PRE>
<DL>
<DD><p>Returns a <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> object containing a datetime <tt>years</tt> years later than the datetime of this object (or earlier if <tt>years</tt> is negative).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)"><tt>daysTo</tt></a>, 
<a href="QDateTime.html#addDays(int)"><tt>addDays</tt></a>, 
<a href="QDateTime.html#addMonths(int)"><tt>addMonths</tt></a>, 
<a href="QDateTime.html#addSecs(int)"><tt>addSecs</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="date()"><!-- --></A><H3>
date</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A> <B>date</B>()</PRE>
<DL>
<DD><p>Returns the date part of the datetime.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#setDate(com.trolltech.qt.core.QDate)"><tt>setDate</tt></a>, 
<a href="QDateTime.html#time()"><tt>time</tt></a>, 
<a href="QDateTime.html#timeSpec()"><tt>timeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="daysTo(com.trolltech.qt.core.QDateTime)"><!-- --></A><H3>
daysTo</H3>
<PRE>
public final int <B>daysTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the number of days from this datetime to the <tt>arg__1</tt> datetime. If the <tt>arg__1</tt> datetime is earlier than this datetime, the value returned is negative.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#addDays(int)"><tt>addDays</tt></a>, 
<a href="QDateTime.html#secsTo(com.trolltech.qt.core.QDateTime)"><tt>secsTo</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public final boolean <B>isNull</B>()</PRE>
<DL>
<DD><p>Returns true if both the date and the time are null; otherwise returns false. A null datetime is invalid.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::isNull</tt>, 
<tt>QTime::isNull</tt>, 
<a href="QDateTime.html#isValid()"><tt>isValid</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isValid()"><!-- --></A><H3>
isValid</H3>
<PRE>
public final boolean <B>isValid</B>()</PRE>
<DL>
<DD><p>Returns true if both the date and the time are valid; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::isValid</tt>, 
<tt>QTime::isValid</tt></DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Writes thisQDateTime to arg__1.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Reads a QDateTime from arg__1.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="secsTo(com.trolltech.qt.core.QDateTime)"><!-- --></A><H3>
secsTo</H3>
<PRE>
public final int <B>secsTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the number of seconds from this datetime to the <tt>arg__1</tt> datetime. If the <tt>arg__1</tt> datetime is earlier than this datetime, the value returned is negative.</p>
<p>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.</p>
<p>Example:</p>
<pre>    QDateTime now = QDateTime::currentDateTime();
    QDateTime xmas(QDate(now.date().year(), 12, 25), QTime(0, 0));
    qDebug(&quot;There are %d seconds to Christmas&quot;, now.secsTo(xmas));</pre>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#addSecs(int)"><tt>addSecs</tt></a>, 
<a href="QDateTime.html#daysTo(com.trolltech.qt.core.QDateTime)"><tt>daysTo</tt></a>, 
<tt>QTime::secsTo</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setDate(com.trolltech.qt.core.QDate)"><!-- --></A><H3>
setDate</H3>
<PRE>
public final void <B>setDate</B>(<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core">QDate</A>&nbsp;date)</PRE>
<DL>
<DD><p>Sets the date part of this datetime to <tt>date</tt>. If no time is set, it is set to midnight.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#date()"><tt>date</tt></a>, 
<a href="QDateTime.html#setTime(com.trolltech.qt.core.QTime)"><tt>setTime</tt></a>, 
<a href="QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>setTimeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setTime(com.trolltech.qt.core.QTime)"><!-- --></A><H3>
setTime</H3>
<PRE>
public final void <B>setTime</B>(<A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A>&nbsp;time)</PRE>
<DL>
<DD><p>Sets the time part of this datetime to <tt>time</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#time()"><tt>time</tt></a>, 
<a href="QDateTime.html#setDate(com.trolltech.qt.core.QDate)"><tt>setDate</tt></a>, 
<a href="QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>setTimeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><!-- --></A><H3>
setTimeSpec</H3>
<PRE>
public final void <B>setTimeSpec</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</PRE>
<DL>
<DD><p>Sets the time specification used in this datetime to <tt>spec</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#timeSpec()"><tt>timeSpec</tt></a>, 
<a href="QDateTime.html#setDate(com.trolltech.qt.core.QDate)"><tt>setDate</tt></a>, 
<a href="QDateTime.html#setTime(com.trolltech.qt.core.QTime)"><tt>setTime</tt></a>, 
<tt>Qt::TimeSpec</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setTime_t(int)"><!-- --></A><H3>
setTime_t</H3>
<PRE>
public final void <B>setTime_t</B>(int&nbsp;secsSince1Jan1970UTC)</PRE>
<DL>
<DD><p>Sets the date and time given the number of <tt>secsSince1Jan1970UTC</tt> 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.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#toTime_t()"><tt>toTime_t</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="time()"><!-- --></A><H3>
time</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTime.html" title="class in com.trolltech.qt.core">QTime</A> <B>time</B>()</PRE>
<DL>
<DD><p>Returns the time part of the datetime.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#setTime(com.trolltech.qt.core.QTime)"><tt>setTime</tt></a>, 
<a href="QDateTime.html#date()"><tt>date</tt></a>, 
<a href="QDateTime.html#timeSpec()"><tt>timeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="timeSpec()"><!-- --></A><H3>
timeSpec</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A> <B>timeSpec</B>()</PRE>
<DL>
<DD><p>Returns the time specification of the datetime.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#setTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>setTimeSpec</tt></a>, 
<a href="QDateTime.html#date()"><tt>date</tt></a>, 
<a href="QDateTime.html#time()"><tt>time</tt></a>, 
<tt>Qt::TimeSpec</tt></DL>
</DD>
</DL>
<HR>

<A NAME="toLocalTime()"><!-- --></A><H3>
toLocalTime</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>toLocalTime</B>()</PRE>
<DL>
<DD><p>Returns a datetime containing the date and time information in this datetime, but specified using the Qt::LocalTime definition.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>toTimeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public final java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QDateTime.html#toString(java.lang.String)"><tt>toString</tt></a>(Qt::TextDate).
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toString(com.trolltech.qt.core.Qt.DateFormat)"><!-- --></A><H3>
toString</H3>
<PRE>
public final java.lang.String <B>toString</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.DateFormat.html" title="enum in com.trolltech.qt.core">Qt.DateFormat</A>&nbsp;f)</PRE>
<DL>
<DD><p>Returns the datetime as a string in the <tt>f</tt> given.</p>
<p>If the <tt>f</tt> 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 &quot;Wed May 20 03:40:13 1998&quot;.</p>
<p>If the <tt>f</tt> 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.</p>
<p>If the <tt>f</tt> is Qt::LocalDate or Qt::SystemLocaleDate, the string format depends on the locale settings of the system. Identical to calling QLocale::system().<a href="QDateTime.html#toString(java.lang.String)"><tt>toString</tt></a>(dateTime, QLocale::ShortFormat). <i>Qt::LocalDate has been deprecated, please use Qt::SystemLocaleDate instead.</i></p>
<p>If the <tt>f</tt> 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().<a href="QDateTime.html#toString(java.lang.String)"><tt>toString</tt></a>(dateTime, QLocale::ShortFormat);</p>
<p>If the datetime is invalid, an empty string will be returned.</p>
<p><b>Warning:</b> 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.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::toString</tt>, 
<tt>QTime::toString</tt>, 
<tt>Qt::DateFormat</tt></DL>
</DD>
</DL>
<HR>

<A NAME="toString(java.lang.String)"><!-- --></A><H3>
toString</H3>
<PRE>
public final java.lang.String <B>toString</B>(java.lang.String&nbsp;format)</PRE>
<DL>
<DD><p>Returns the datetime as a string. The <tt>format</tt> parameter determines the format of the result string.</p>
<p>These expressions may be used for the date:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Expression</th><th>Output</th></tr></thead>
<tr valign="top" class="odd"><td>d</td><td>the day as number without a leading zero (1 to 31)</td></tr>
<tr valign="top" class="even"><td>dd</td><td>the day as number with a leading zero (01 to 31)</td></tr>
<tr valign="top" class="odd"><td>ddd</td><td>the abbreviated localized day name (e.g&#x2e; 'Mon' to 'Sun'). Uses QDate::shortDayName().</td></tr>
<tr valign="top" class="even"><td>dddd</td><td>the long localized day name (e.g&#x2e; 'Qt::Monday' to 'Qt::Sunday'). Uses QDate::longDayName().</td></tr>
<tr valign="top" class="odd"><td>M</td><td>the month as number without a leading zero (1-12)</td></tr>
<tr valign="top" class="even"><td>MM</td><td>the month as number with a leading zero (01-12)</td></tr>
<tr valign="top" class="odd"><td>MMM</td><td>the abbreviated localized month name (e.g&#x2e; 'Jan' to 'Dec'). Uses QDate::shortMonthName().</td></tr>
<tr valign="top" class="even"><td>MMMM</td><td>the long localized month name (e.g&#x2e; 'January' to 'December'). Uses QDate::longMonthName().</td></tr>
<tr valign="top" class="odd"><td>yy</td><td>the year as two digit number (00-99)</td></tr>
<tr valign="top" class="even"><td>yyyy</td><td>the year as four digit number</td></tr>
</table></p>
<p>These expressions may be used for the time:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Expression</th><th>Output</th></tr></thead>
<tr valign="top" class="odd"><td>h</td><td>the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</td></tr>
<tr valign="top" class="even"><td>hh</td><td>the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</td></tr>
<tr valign="top" class="odd"><td>m</td><td>the minute without a leading zero (0 to 59)</td></tr>
<tr valign="top" class="even"><td>mm</td><td>the minute with a leading zero (00 to 59)</td></tr>
<tr valign="top" class="odd"><td>s</td><td>the second without a leading zero (0 to 59)</td></tr>
<tr valign="top" class="even"><td>ss</td><td>the second with a leading zero (00 to 59)</td></tr>
<tr valign="top" class="odd"><td>z</td><td>the milliseconds without leading zeroes (0 to 999)</td></tr>
<tr valign="top" class="even"><td>zzz</td><td>the milliseconds with leading zeroes (000 to 999)</td></tr>
<tr valign="top" class="odd"><td>AP</td><td>use AM/PM display. <i>AP</i> will be replaced by either &quot;AM&quot; or &quot;PM&quot;.</td></tr>
<tr valign="top" class="even"><td>ap</td><td>use am/pm display. <i>ap</i> will be replaced by either &quot;am&quot; or &quot;pm&quot;.</td></tr>
</table></p>
<p>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 (&quot;''&quot;) are replaced by a singlequote in the output.</p>
<p>Example format strings (assumed that the <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> is 21 May 2001 14:13:09):</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Format</th><th>Result</th></tr></thead>
<tr valign="top" class="odd"><td>dd.MM.yyyy</td><td>21.05.2001</td></tr>
<tr valign="top" class="even"><td>ddd MMMM d yy</td><td>Tue May 21 01</td></tr>
<tr valign="top" class="odd"><td>hh:mm:ss.zzz</td><td>14:13:09.042</td></tr>
<tr valign="top" class="even"><td>h:m:s ap</td><td>2:13:9 pm</td></tr>
</table></p>
<p>If the datetime is invalid, an empty string will be returned.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::toString</tt>, 
<tt>QTime::toString</tt></DL>
</DD>
</DL>
<HR>

<A NAME="toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><!-- --></A><H3>
toTimeSpec</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>toTimeSpec</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.TimeSpec.html" title="enum in com.trolltech.qt.core">Qt.TimeSpec</A>&nbsp;spec)</PRE>
<DL>
<DD><p>Returns a copy of this datetime configured to use the given time <tt>spec</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#timeSpec()"><tt>timeSpec</tt></a>, 
<a href="QDateTime.html#toUTC()"><tt>toUTC</tt></a>, 
<a href="QDateTime.html#toLocalTime()"><tt>toLocalTime</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toTime_t()"><!-- --></A><H3>
toTime_t</H3>
<PRE>
public final int <B>toTime_t</B>()</PRE>
<DL>
<DD><p>Returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (Qt::UTC).</p>
<p>On systems that do not support timezones, this function will behave as if local time were Qt::UTC.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#setTime_t(int)"><tt>setTime_t</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toUTC()"><!-- --></A><H3>
toUTC</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>toUTC</B>()</PRE>
<DL>
<DD><p>Returns a datetime containing the date and time information in this datetime, but specified using the Qt::UTC definition.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>toTimeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentDateTime()"><!-- --></A><H3>
currentDateTime</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>currentDateTime</B>()</PRE>
<DL>
<DD><p>Returns the current datetime, as reported by the system clock, in the local time zone.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::currentDate</tt>, 
<tt>QTime::currentTime</tt>, 
<a href="QDateTime.html#toTimeSpec(com.trolltech.qt.core.Qt.TimeSpec)"><tt>toTimeSpec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromString(java.lang.String)"><!-- --></A><H3>
fromString</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>fromString</B>(java.lang.String&nbsp;s)</PRE>
<DL>
<DD><p>Equivalent to <a href="QDateTime.html#fromString(java.lang.String, java.lang.String)"><tt>fromString</tt></a>(<tt>s</tt>, Qt::TextDate).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromString(java.lang.String, com.trolltech.qt.core.Qt.DateFormat)"><!-- --></A><H3>
fromString</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>fromString</B>(java.lang.String&nbsp;s,
                                   <A HREF="../../../../com/trolltech/qt/core/Qt.DateFormat.html" title="enum in com.trolltech.qt.core">Qt.DateFormat</A>&nbsp;f)</PRE>
<DL>
<DD><p>Returns the <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> represented by the <tt>s</tt>, using the <tt>f</tt> given, or an invalid datetime if this is not possible.</p>
<p>Note for Qt::TextDate: It is recommended that you use the English short month names (e.g&#x2e; &quot;Jan&quot;). Although localized month names can also be used, they depend on the user's locale settings.</p>
<p><b>Warning:</b> Note that Qt::LocalDate cannot be used here.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromString(java.lang.String, java.lang.String)"><!-- --></A><H3>
fromString</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>fromString</B>(java.lang.String&nbsp;s,
                                   java.lang.String&nbsp;format)</PRE>
<DL>
<DD><p>Returns the <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> represented by the <tt>s</tt>, using the <tt>format</tt> given, or an invalid datetime if the string cannot be parsed.</p>
<p>These expressions may be used for the date part of the format string:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Expression</th><th>Output</th></tr></thead>
<tr valign="top" class="odd"><td>d</td><td>the day as number without a leading zero (1 to 31)</td></tr>
<tr valign="top" class="even"><td>dd</td><td>the day as number with a leading zero (01 to 31)</td></tr>
<tr valign="top" class="odd"><td>ddd</td><td>the abbreviated localized day name (e.g&#x2e; 'Mon' to 'Sun'). Uses QDate::shortDayName().</td></tr>
<tr valign="top" class="even"><td>dddd</td><td>the long localized day name (e.g&#x2e; 'Qt::Monday' to 'Qt::Sunday'). Uses QDate::longDayName().</td></tr>
<tr valign="top" class="odd"><td>M</td><td>the month as number without a leading zero (1-12)</td></tr>
<tr valign="top" class="even"><td>MM</td><td>the month as number with a leading zero (01-12)</td></tr>
<tr valign="top" class="odd"><td>MMM</td><td>the abbreviated localized month name (e.g&#x2e; 'Jan' to 'Dec'). Uses QDate::shortMonthName().</td></tr>
<tr valign="top" class="even"><td>MMMM</td><td>the long localized month name (e.g&#x2e; 'January' to 'December'). Uses QDate::longMonthName().</td></tr>
<tr valign="top" class="odd"><td>yy</td><td>the year as two digit number (00-99)</td></tr>
<tr valign="top" class="even"><td>yyyy</td><td>the year as four digit number</td></tr>
</table></p>
<p>These expressions may be used for the time part of the format string:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Expression</th><th>Output</th></tr></thead>
<tr valign="top" class="odd"><td>h</td><td>the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</td></tr>
<tr valign="top" class="even"><td>hh</td><td>the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</td></tr>
<tr valign="top" class="odd"><td>H</td><td>the hour without a leading zero (0 to 23, even with AM/PM display)</td></tr>
<tr valign="top" class="even"><td>HH</td><td>the hour with a leading zero (00 to 23, even with AM/PM display)</td></tr>
<tr valign="top" class="odd"><td>m</td><td>the minute without a leading zero (0 to 59)</td></tr>
<tr valign="top" class="even"><td>mm</td><td>the minute with a leading zero (00 to 59)</td></tr>
<tr valign="top" class="odd"><td>s</td><td>the second without a leading zero (0 to 59)</td></tr>
<tr valign="top" class="even"><td>ss</td><td>the second with a leading zero (00 to 59)</td></tr>
<tr valign="top" class="odd"><td>z</td><td>the milliseconds without leading zeroes (0 to 999)</td></tr>
<tr valign="top" class="even"><td>zzz</td><td>the milliseconds with leading zeroes (000 to 999)</td></tr>
<tr valign="top" class="odd"><td>AP or A</td><td>interpret as an AM/PM time. <i>AP</i> must be either &quot;AM&quot; or &quot;PM&quot;.</td></tr>
<tr valign="top" class="even"><td>ap or a</td><td>Interpret as an AM/PM time. <i>ap</i> must be either &quot;am&quot; or &quot;pm&quot;.</td></tr>
</table></p>
<p>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.</p>
<pre>    QTime time1 = QTime::fromString(&quot;131&quot;, &quot;HHh&quot;);
<span class="comment">    // time1 is 13:00:00</span>
    QTime time1 = QTime::fromString(&quot;1apA&quot;, &quot;1amAM&quot;);
<span class="comment">    // time1 is 01:00:00</span>

    QDateTime dateTime2 = QDateTime::fromString(&quot;M1d1y9800:01:02&quot;,
                                                &quot;'M'M'd'd'y'yyhh:mm:ss&quot;);
<span class="comment">    // dateTime is 1 January 1998 00:01:02</span></pre>
<p>If the format is not satisfied an invalid <a href="QDateTime.html#QDateTime(com.trolltech.qt.core.QDate, com.trolltech.qt.core.QTime, com.trolltech.qt.core.Qt.TimeSpec)"><tt>QDateTime</tt></a> 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.</p>
<pre>    QDateTime dateTime = QDateTime::fromString(&quot;130&quot;, &quot;Mm&quot;); <span class="comment">// invalid</span></pre>
<p>This could have meant 1 January 00:30.00 but the M will grab two digits.</p>
<p>For any field that is not represented in the format the following defaults are used:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Field</th><th>Default value</th></tr></thead>
<tr valign="top" class="odd"><td>Year</td><td>1900</td></tr>
<tr valign="top" class="even"><td>Month</td><td>1 (January)</td></tr>
<tr valign="top" class="odd"><td>Day</td><td>1</td></tr>
<tr valign="top" class="even"><td>Hour</td><td>0</td></tr>
<tr valign="top" class="odd"><td>Minute</td><td>0</td></tr>
<tr valign="top" class="even"><td>Second</td><td>0</td></tr>
</table></p>
<p>For example:</p>
<pre>    QDateTime dateTime = QDateTime::fromString(&quot;1.30.1&quot;, &quot;M.d.s&quot;);
<span class="comment">    // dateTime is January 30 in the current year 00:00:01</span></pre>
<p>QDateTime::toString() QTime::toString()</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QDate::fromString</tt>, 
<tt>QTime::fromString</tt>, 
<tt>QDate::toString</tt></DL>
</DD>
</DL>
<HR>

<A NAME="fromTime_t(int)"><!-- --></A><H3>
fromTime_t</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>fromTime_t</B>(int&nbsp;secsSince1Jan1970UTC)</PRE>
<DL>
<DD><p>Returns a datetime whose date and time are the number of <tt>secsSince1Jan1970UTC</tt> 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.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QDateTime.html#toTime_t()"><tt>toTime_t</tt></a>, 
<a href="QDateTime.html#setTime_t(int)"><tt>setTime_t</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QDateTime instance pointed to by nativePointer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.core.QDateTime[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/core/QDateTime.html" title="class in com.trolltech.qt.core">QDateTime</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QDateTime array.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDate.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QDir.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QDateTime.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QDateTime.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>