/
xpxGetDate
xpxGetDate
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
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.
Options
Example
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
There are no items with the selected labels at this time.