Given an RFC 822 compliant wide 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
-
pwszDate | [ in ] A pointer to a NULL terminated P6R::P6WCHAR 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
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pwszDate or pOutTime was NULL |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
eFormatError | The string in pwszDate is not an RFC 822 compliant date string. |