SetTime

PowerBuilder Native Interface

IPB_Session interface:

SetTime method

Description

Syntax

SetTime (pbtime time, pbint hour, pbint minute, pbdouble second)

Return Values

Examples

if (ci->pArgs->GetAt(i)->IsNull())
{
   pArguments[i].time_val = Session-> NewTime();
  Session->SetTime(pArguments[i].time_val, 1, 1, 1); 
                                    // Time: 01:01:01
}
else
{
   pArguments[i].time_val =
      ci-> pArgs-> GetAt(i)-> GetTime();
}

Usage

See Also