Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 518

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class KRFCDate</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class KRFCDate</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">
 The KDate class contains functions related to the parsing of dates. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="krfcdate_h.html">krfcdate.h</A>&gt;</code></TD></TR>
<TR><TH><A HREF="full-list-KRFCDate.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Static Methods</h4><ul><LI>static  time_t &nbsp;<b><A HREF="#ref1">parseDate</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &) 
</LI>
<LI>static  int &nbsp;<b><A HREF="#ref2">localUTCOffset</A></b> () 
</LI>
<LI>static  <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> &nbsp;<b><A HREF="#ref3">rfc2822DateString</A></b> (time_t utcTime, int utcOffset) 
</LI>
<LI>static  <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> &nbsp;<b><A HREF="#ref4">rfc2822DateString</A></b> (time_t utcTime) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 The KDate class contains functions related to the parsing of dates.
</p>
<p></p>
<A NAME="parseDate"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> time_t &nbsp;<strong>parseDate</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &)
<br></td><td align="right"><h3><strong>parseDate</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 This function tries to parse a string containing a date/time in any
 of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822.
</p>
<p> If the date/time could not be parsed, 0 is returned.  If the
 parsed date is epoch, then epoch+1 is returned so that a valid
 date will not be confused with an improper date string.
</p>
<p> The date/time returned is converted to UTC.
</p>
<p>    </p>
<A NAME="localUTCOffset"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int &nbsp;<strong>localUTCOffset</strong> ()
<br></td><td align="right"><h3><strong>localUTCOffset</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Returns the local timezone offset to UTC in seconds
</p>
<p>   </p>
<A NAME="rfc2822DateString"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> &nbsp;<strong>rfc2822DateString</strong> (time_t utcTime, int utcOffset)
<br></td><td align="right"><h3><strong>rfc2822DateString</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Returns a string representation of the given date and time formated
 in conformance to RFC2822.
</p>
<p></p>
<p>   </p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>utcTime</i></TD><TD align="left" valign="top">a date and time in UTC
</TD></TR>
<TR><TD align="left" valign="top"><i>utcOffset</i></TD><TD align="left" valign="top">the offset to UTC in seconds
</TD></TR>
</TABLE></P>
<A NAME="rfc2822DateString"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qcstring.html">QCString</A> &nbsp;<strong>rfc2822DateString</strong> (time_t utcTime)
<br></td><td align="right"><h3><strong>rfc2822DateString</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Returns a string representation of the given date and time formated
 in conformance to RFC2822.
</p>
<p> Provided for convenience, the function is equivalent to
 rfc2822DateString(t, localUTCOffset()).
</p>
<p></p>
<p>   </p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>utcTime</i></TD><TD align="left" valign="top">a date and time in UTC
</TD></TR>
</TABLE></P>
<HR><UL><LI><i>Author</i>: Waldo Bastian <bastian@kde.org>
 </LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:08:56 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>