Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

Code Block
languagecpp
themeConfluence
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

...

Code Block
languagecpp
  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)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"