KRFCDate Class Reference
The KRFCDate class contains functions related to the parsing of dates. More...
#include <krfcdate.h>
Static Public Member Functions | |
time_t | parseDate (const QString &date) |
time_t | parseDateISO8601 (const QString &date) |
int | localUTCOffset () |
QCString | rfc2822DateString (time_t utcTime, int utcOffset) |
QCString | rfc2822DateString (time_t utcTime) |
Detailed Description
The KRFCDate class contains functions related to the parsing of dates.
- Author:
- Waldo Bastian <bastian@kde.org>
Definition at line 32 of file krfcdate.h.
Member Function Documentation
|
This function tries to parse a string containing a date/time in any of the formats specified by RFC822, RFC850, RFC1036, RFC1123 and RFC2822. 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. The date/time returned is converted to UTC.
Definition at line 98 of file krfcdate.cpp. References parseDate(). Referenced by parseDate(). |
|
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. This is a subset of the formats specified in ISO8601. 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. The date/time returned is converted to UTC.
Definition at line 340 of file krfcdate.cpp. References parseDateISO8601(). Referenced by parseDateISO8601(). |
|
Returns the local timezone offset to UTC in minutes.
Definition at line 446 of file krfcdate.cpp. Referenced by rfc2822DateString(). |
|
Returns a string representation of the given date and time formated in conformance to RFC2822.
Definition at line 472 of file krfcdate.cpp. References rfc2822DateString(). Referenced by rfc2822DateString(). |
|
Returns a string representation of the given date and time formated in conformance to RFC2822. Provided for convenience, the function is equivalent to rfc2822DateString(t, localUTCOffset()).
Definition at line 490 of file krfcdate.cpp. References localUTCOffset(), and rfc2822DateString(). |
The documentation for this class was generated from the following files: