• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

Static Public Member Functions
K3RFCDate Class Reference

#include <k3rfcdate.h>

List of all members.

Static Public Member Functions

static int localUTCOffset ()
static time_t parseDate (const QString &date)
static time_t parseDateISO8601 (const QString &date)
static QByteArray rfc2822DateString (time_t utcTime, int utcOffset=localUTCOffset())

Detailed Description

The K3RFCDate class contains functions related to the parsing of dates.

Deprecated:
this class is made obsolete by KDateTime
Author:
Waldo Bastian basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g

Definition at line 36 of file k3rfcdate.h.


Member Function Documentation

int K3RFCDate::localUTCOffset ( )
static

Returns the local timezone offset to UTC in minutes.

Returns:
the local timezone offset in minutes

Definition at line 456 of file k3rfcdate.cpp.

time_t K3RFCDate::parseDate ( const QString &  date)
static

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.

Parameters:
datethe date to parse
Returns:
the date, or 0 if not possible

Definition at line 97 of file k3rfcdate.cpp.

time_t K3RFCDate::parseDateISO8601 ( const QString &  date)
static

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.

Parameters:
datethe date to parse
Returns:
the date, or 0 if not possible

Definition at line 343 of file k3rfcdate.cpp.

QByteArray K3RFCDate::rfc2822DateString ( time_t  utcTime,
int  utcOffset = localUTCOffset() 
)
static

Returns a string representation of the given date and time formated in conformance to RFC2822.

Parameters:
utcTimea date and time in UTC
utcOffsetthe offset to UTC in minutes
Returns:
the string representation of the date

Definition at line 482 of file k3rfcdate.cpp.


The documentation for this class was generated from the following files:
  • k3rfcdate.h
  • k3rfcdate.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:46:34 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal