IPB_Session interface:
SetDateTime method
Description
Resets the value of the specified pbdatetime object.
Syntax
|
1 |
SetDate (pbdatetime <span>dt</span>, pbint <span>year</span>, pbint <span>month</span>, pbint <span>day</span>, pbint <span>hour</span>, pbint <span>minute</span>, pbdouble <span>second</span>) |
|
Argument |
Description |
|---|---|
|
dt |
The pbdatetime object |
|
year |
A year in the range 1000 to 3000 |
|
month |
A month in the range 1 to 12 |
|
day |
A day in the range 1 to 31 |
|
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 or PBX_E_INVALID_ARGUMENT
if the new datetime is invalid.
Examples
This example sets the datetime value to August 19,
1982 at 10:30:45.10:
|
1 |
session-><span>SetDate</span>(date_val, 1982, 8, 19, 10, 30, 45.1); |
Usage
If the parameters are invalid, the datetime value is reset
to 1900-1-1 0:0:0.0.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest