...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpxGetDate (VAR seconds, VAR minutes : INTEGER;
VAR hours, VAR day, VAR month : INTEGER;
VAR year : INTEGER)
status : INTEGER;
|
The xpxGetDate procedure returns the current time and date in the format as listed in the formal parameters of this procedure.
Arguments
...
Type | Name | Comment |
INTEGER | seconds | comment |
INTEGER | minutes | |
INTEGER | hours | |
INTEGER | day | |
INTEGER | month | |
INTEGER | year |
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
PROCEDURE dateExample; LOCAL seconds,minutes,hours,day,month,year : INTEGER; stringDate : STRING; END_LOCAL; ON_ERROR_DO; xpxPrintf('\nError.'); xpxThrow; END_ON_ERROR_DO; xpxGetDate(seconds,minutes,hours,day,month,year); stringDate := xpfDateToString(seconds,minutes,hours,day,month,year); xpxPrintf('\nCurrent date : %s',stringDate); RETURN; END_PROCEDURE; |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|