Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITime::createRfc822DateA ( const P6TIME pTime,
P6CHAR pBuffer,
P6SIZE  cBuffer,
P6SIZE pcWritten 
)
pure virtual

Given a P6R::P6TIME, creates an RFC 822 compliant date string.

Here is an example of the RFC822 compliant date format that this method generates:

"Wed, 02 Oct 2002 13:51:49 GMT"

This method will always generates dates strings in GMT.

Parameters
pTime[ in ] A pointer to the P6TIME to convert into an RFC 822 date string.
pBuffer[ out ] A pointer to a P6R::P6CHAR buffer in which the converted date string will be placed on success. This buffer must be at least P6RFC822DATESZ characters long.
cBuffer[ in ] Contains the size in characters of pBuffer.
pcWritten[ out ] (optional) On success, the numeber of characters written into pBuffer will be returned. This arugument can be NULL.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpTime or pBuffer was NULL, or cBuffer was zero
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
eTooSmallpBuffer was less than P6RFC822DATESZ