IPB_Session interface:
NewDateTime method
Description
Creates a new pbdatetime data object.
Syntax
|
1 |
NewDateTime() |
Return Values
pbdatetime.
Examples
This example tests whether a date/time value
exists, and, if it does not, it creates a new pbdate object
and sets its value to the beginning of January, 1900:
|
1 |
if (ci->pArgs->GetAt(i)->IsNull())<br>{<br>   pArguments[i].datetime_val=Session-><span>NewDateTime</span>();<br>   Session->SetDateTime(pArguments[i].datetime_val,<br>      1900, 1 , 1, 1, 1, 1); // Datetime:<br>                             // 1900-01-01 01:01:01<br>}<br>else<br>{<br>   pArguments[i].datetime_val = <br>      ci->pArgs->GetAt(i)->GetDateTime();<br>} |
Usage
The initial value is 1900-1-1 0:0:0.0.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest