Expands the provided P6TIME value into an P6TIMEINFO structure.
The time can be represented in UTC or local time. To convert to another timezone, pass the P6TIMEINFO structure to p6ITime::adjust() and specify the timezone offset from UTC that you would like to apply.
- Parameters
-
pTime | [ in ] A pointer to the P6TIME value to expand. |
pExpandedTime | [ in out ] A pointer to the P6TIMEINFO structure that will receive the expanded time information. |
bLocalTime | [ in ] A P6BOOL that if set to P6TRUE will render the expaneded time in local time. If set to P6FALSE, the rendered time will be in GMT. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pTime was NULL |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
Any valid P6ERR. | |