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
Currently supported date formats:
(a) Complete: YYYY-MM-DDTHH:MM:SS(Z or +/-HH:MM)
(b) Full Date: YYYY-MM-DD(+/-HH:MM)
(c) Full Time: HH:MM:SS(+/-HH:MM)
- Parameters
-
pszDate | [ in ] A pointer to a NULL terminated P6R::P6CHAR containing an ISO 8601 compliant date string. |
bUseGMTDefault | [ in ] If no timezone is given in pszDate, then if true assume GMT othewise assume local time |
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
Success | P6R::eOk | |
Failure | The values pointed to by the pOutTime and pDeltaFromGMT arguments are unchanged. |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
eFormatError | The string in pszDate is not an IS0 8601 compliant date string. |
P6R::eInvalidArg | pwszDate or pOutTime was NULL |