FORMATTIME
      
    
        
            | COBOL | Java | 
    
    
        
            | EXEC CICS FORMATTIME | ibmCics.formatTime | 
    
Syntax
ibmCics.formatTime (<AbsTime>, <NoHandle>, new CicsFormatTimeItem(CicsFormatTimeOption.<FormatTimeOption>, <DataArea>[, <Separator>])... );
Note: one or multiple instances of the CicsFormatTimeItem class can be added.
Parameter(s)
<AbsTime>
The variable that holds the absolute time, that is the number of milliseconds since 00:00 on 1 January 1900.
<NoHandle>
Boolean. If set to true, exceptions created by this command will be ignored.
<FormatTimeOption>
The format time option, see the CicsFormatTimeOption enum for all available options. Includes DATE, FULL_DATE, DDMMYYYY, MMDDYYYY, TIME and others.
<DataArea>
The variable in which the result of the formatted time is returned.
<Separator>
The character to be used as the separator in the returned time.
Example(s)
    
        
            | COBOL | Java | 
    
    
        
            | 
EXEC CICS
    FORMATTIME ABSTIME(UTIME)
        MMDDYYYY(WS-CUR-DATE)
END-EXEC.
                 | 
ibmCics.formatTime(locDef.utime, false, 
  new CicsFormatTimeItem(CicsFormatTimeOption.MMDDYYYY, locDef.ws_Cur_Date));
                 | 
        
            | 
EXEC CICS
    FORMATTIME ABSTIME(UTIME)
        DATESEP('/') FULLDATE(CURR-DATE)
        TIME(CURR-TIME) TIMESEP(':')
END-EXEC.
                 | 
ibmCics.formatTime(locDef.utime, false, 
  new CicsFormatTimeItem(CicsFormatTimeOption.FULL_DATE, locDef.curr_Date, "/"), 
  new CicsFormatTimeItem(CicsFormatTimeOption.TIME, locDef.curr_Time, ":"));
                 |