Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITime::parseRfc822DateA ( const P6CHAR pszDate,
P6TIME pOutTime,
P6INT32 pDeltaFromGMT 
)
pure virtual

Given an RFC 822 compliant narrow character date string, this method converts it into a P6R::P6TIME.

Here are some examples of typical RFC 822 formatted dates:

 Wed, 02 Oct 2002 13:00:00 GMT
 Wed, 02 Oct 2002 15:00:00 +0200
 Wed, 02 Oct 2002 13:00:00 PST
 

This method uses the timzones.conf file in the confs directory to interpret timezone abbreviations. Timezones can easily be added to that file if needed.

Parameters
pszDate[ in ] A pointer to a NULL terminated P6R::P6CHAR containing an RFC 822 compliant date string.
pOutTime[ in out ] The address of a P6R::P6TIME in which will be placed the converted date on success.
pDeltaFromGMT[ out ] Returns the delta in seconds from GMT specified in the RFC 822 string. This parameter can be NULL if the value is not needed.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpwszDate or pOutTime was NULL
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
eFormatErrorThe string in pszDate is not an RFC 822 compliant date string.