xpfDateToString

FUNCTION xpfDateToString (seconds, minutes, hours, day : INTEGER;
                          month, year                  : INTEGER)
                          timeAndDate                  : STRING;
                

The xpfDateToString function converts the specified time and date to a string in the following format: Mon Oct 27 08:06:00 MET 1997. The formatted time and date will be returned through the timeAndDate argument.

Arguments


TypeNameComment
INTEGERsecondscomments
INTEGERminutes 
INTEGERhours 
INTEGERday 
INTEGERmonth 
INTEGERyear 

Return Value


 

TypeNameComment
STRINGtimeAndDatecomments

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.