NewTime

PowerBuilder Native Interface

IPB_Session interface:

NewTime method

Description

Creates a new pbtime data object.

Syntax

NewTime()

Return Values

pbtime.

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);

Usage

The initial value is 0:0:0.0.

See Also