Given a P6R::P6TIME, creates an ISO 8601 compliant date string.
Here is an example of the ISO 8601 compliant date format that this method generates:
"2008-01-22T12:15:33Z"
This method will always generates dates strings in GMT.
- Parameters
-
pTime | [ in ] A pointer to the P6TIME to convert into an ISO 8601 date string. |
deltaFromGMT | [ in ] Time zone in seconds from GMT for the value stored in pTime |
degree | [ in ] Indicates how much of the time string to generate: 0 - full string (default), 1 - just date and timezone, 2 - just time and timezone. |
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 P6ISO8601DATESZ 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
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pTime or pBuffer was NULL, or cBuffer was zero |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
eTooSmall | pBuffer was less than P6ISO8601DATESZ |