.TH "KRFCDate" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KRFCDate \- The KRFCDate class contains functions related to the parsing of dates.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <krfcdate.h>\fP
.PP
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static time_t \fBparseDate\fP (const \fBQString\fP &date)"
.br
.ti -1c
.RI "static time_t \fBparseDateISO8601\fP (const \fBQString\fP &date)"
.br
.ti -1c
.RI "static int \fBlocalUTCOffset\fP ()"
.br
.ti -1c
.RI "static \fBQCString\fP \fBrfc2822DateString\fP (time_t utcTime, int utcOffset)"
.br
.ti -1c
.RI "static \fBQCString\fP \fBrfc2822DateString\fP (time_t utcTime)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The KRFCDate class contains functions related to the parsing of dates. 

\fBAuthor:\fP
.RS 4
Waldo Bastian <bastian@kde.org> 
.RE
.PP

.PP
Definition at line 32 of file krfcdate.h.
.SH "Member Function Documentation"
.PP 
.SS "time_t KRFCDate::parseDate (const \fBQString\fP & date)\fC [static]\fP"
.PP
This function tries to parse a string containing a date/time in any of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822. 
.PP
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.
.PP
The date/time returned is converted to UTC. 
.PP
\fBParameters:\fP
.RS 4
\fIdate\fP the date to parse 
.RE
.PP
\fBReturns:\fP
.RS 4
the date, or 0 if not possible 
.RE
.PP

.PP
Definition at line 98 of file krfcdate.cpp.
.SS "time_t KRFCDate::parseDateISO8601 (const \fBQString\fP & date)\fC [static]\fP"
.PP
This function tries to parse a string containing a date/time in any of the formats specified by http://www.w3.org/TR/NOTE-datetime. 
.PP
This is a subset of the formats specified in ISO8601.
.PP
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.
.PP
The date/time returned is converted to UTC.
.PP
\fBParameters:\fP
.RS 4
\fIdate\fP the date to parse 
.RE
.PP
\fBReturns:\fP
.RS 4
the date, or 0 if not possible 
.RE
.PP

.PP
Definition at line 340 of file krfcdate.cpp.
.PP
References QString::at(), QString::contains(), QString::find(), QString::findRev(), QString::left(), QString::length(), QString::mid(), QString::remove(), QString::right(), QStringList::split(), QString::stripWhiteSpace(), and QString::toUInt().
.SS "int KRFCDate::localUTCOffset ()\fC [static]\fP"
.PP
Returns the local timezone offset to UTC in minutes. 
.PP
\fBReturns:\fP
.RS 4
the local timezone offset in minutes 
.RE
.PP

.PP
Definition at line 446 of file krfcdate.cpp.
.PP
Referenced by rfc2822DateString().
.SS "\fBQCString\fP KRFCDate::rfc2822DateString (time_t utcTime, int utcOffset)\fC [static]\fP"
.PP
Returns a string representation of the given date and time formated in conformance to RFC2822. 
.PP
\fBParameters:\fP
.RS 4
\fIutcTime\fP a date and time in UTC 
.br
\fIutcOffset\fP the offset to UTC in minutes 
.RE
.PP
\fBReturns:\fP
.RS 4
the string representation of the date 
.RE
.PP

.PP
Definition at line 472 of file krfcdate.cpp.
.PP
References QCString::sprintf().
.PP
Referenced by rfc2822DateString().
.SS "\fBQCString\fP KRFCDate::rfc2822DateString (time_t utcTime)\fC [static]\fP"
.PP
Returns a string representation of the given date and time formated in conformance to RFC2822. 
.PP
Provided for convenience, the function is equivalent to rfc2822DateString(t, \fBlocalUTCOffset()\fP).
.PP
\fBParameters:\fP
.RS 4
\fIutcTime\fP a date and time in UTC 
.RE
.PP
\fBReturns:\fP
.RS 4
the string representation of the date 
.RE
.PP

.PP
Definition at line 490 of file krfcdate.cpp.
.PP
References localUTCOffset(), and rfc2822DateString().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
