Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with a time value.
Note, to obtain a date type value in an ISO 8601 string format, call the getString() method instead of this method. As defined in SQL, date values can be returned in the ISO 8601 format. Also note that P6R, has methods to both parse and create ISO 8601 strings (see p6Time::parseISO8601DateA(), p6Time::parseISO8601DateW(), p6Time::createISO8601DateA(), and p6Time::createISO8601DateW()).
- Parameters
-
index | [ in ] Starts at 1, count from left to right of parameter in prepared statement to extract |
pTime | [ in ] Expect a P6TIME value to be returned |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eInvalidArg | pTime is NULL |
P6R::eTooBig | The index is greater than the last valid parameter to extract. |
P6R::eValueNULL | Date has a null value. |