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


TypeNameComment
INTEGERsecondscomment
INTEGERminutes 
INTEGERhours 
INTEGERday 
INTEGERmonth 
INTEGERyear 

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.

Â