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

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::P6WCHAR 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
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 P6ISO8601DATESZ