IPB_Session interface:
SplitTime method
Description
Splits the specified time object into an hour, minute, and second.
Syntax
SplitTime(pbtime time, pbint *hour, pbint *minute, pbdouble *second)
Argument |
Description |
---|---|
time |
The pbtime object to be split |
hour |
An hour in the range 0 to 23 |
minute |
A minute in the range 0 to 59 |
second |
A second in the range 0 to 59.999999 |
Return Values
PBX_RESULT. PBX_OK for success.
Examples
These statements split a time into hours, minutes, and seconds, and then use the resulting values to set the value of a new time object:
Session->SplitTime(ci.returnValue->GetTime(), &hh,
&mm, &ss);
ret_val = Session-> NewTime();
Session-> SetTime(ret_val, hh, mm, ss);