SplitTime
Description
Splits the specified time object into an hour, minute, and
second.
Syntax
|
1 |
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 value
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:
|
1 2 3 4 |
Session->SplitTime(ci.returnValue->GetTime(), &hh, &mm, &ss); ret_val = Session-> NewTime(); Session-> SetTime(ret_val, hh, mm, ss); |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest