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

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

Here are some examples of typical ISO 8601 formatted dates:

2008-01-22T12:15:33Z
2008-01-22T12:15:33-08:00

GMT is assumed if no time zone is specified.

Parameters
pszDate[ in ] The ISO string to parse
pOutTime[ out ] The address of a P6R::P6TIME in which will be placed the converted date on success. The value returned is in GMT, with the time zone returned in pDeltaFromGMT
pDeltaFromGMT[ out ] Returns the delta in seconds from GMT specified in the ISO 8601 string (e.g., +08:00). This parameter can be NULL if the value is not needed.
Returns
SuccessP6R::eOk 
FailureThe values pointed to by the pOutTime and pDeltaFromGMT arguments are unchanged.
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
eFormatErrorThe string in pszDate is not an RFC 822 compliant date string.
P6R::eInvalidArgpwszDate or pOutTime was NULL