visad/src/main/java/ucar/nc2/iosp/gempak/GempakUtil.java
public static String TG_ITOC(int[] intdtf) {
        String gdattim = "";

        //Check for the blank time which may be found.

        if ((intdtf[0] == 0) && (intdtf[1] == 0) && (intdtf[2] == 0)) {
            return gdattim;
        }

        //  Put the date and time into the character time.

        gdattim = TI_CDTM(intdtf[0], intdtf[1]);

        //  Decode the forecast information if there is any.

        if (intdtf[2] != 0) {
            String[] timeType = TG_CFTM(intdtf[2]);
            String   ftype    = timeType[0];
            String   ftime    = timeType[1];

            //      Combine two parts into string.

            gdattim = gdattim.substring(0, 11) + ftype + ftime;
        }

        return gdattim;
    }
public static String TG_ITOC(int[] intdtf) {
        String gdattim = "";

        //Check for the blank time which may be found.

        if ((intdtf[0] == 0) && (intdtf[1] == 0) && (intdtf[2] == 0)) {
            return gdattim;
        }

        //  Put the date and time into the character time.

        gdattim = TI_CDTM(intdtf[0], intdtf[1]);

        //  Decode the forecast information if there is any.

        if (intdtf[2] != 0) {
            String[] timeType = TG_CFTM(intdtf[2]);
            String   ftype    = timeType[0];
            String   ftime    = timeType[1];

            //      Combine two parts into string.

            gdattim = gdattim.substring(0, 11) + ftype + ftime;
        }

        return gdattim;
    }
public static String TG_ITOC ( int [ ] intdtf ) { String gdattim = "" ; //Check for the blank time which may be found.
 if ( ( intdtf [ 0 ] == 0 ) && ( intdtf [ 1 ] == 0 ) && ( intdtf [ 2 ] == 0 ) ) { return gdattim ; } //  Put the date and time into the character time.
 gdattim = TI_CDTM ( intdtf [ 0 ] , intdtf [ 1 ] ) ; //  Decode the forecast information if there is any.
 if ( intdtf [ 2 ] != 0 ) { String [ ] timeType = TG_CFTM ( intdtf [ 2 ] ) ; String ftype = timeType [ 0 ] ; String ftime = timeType [ 1 ] ; //      Combine two parts into string.
 gdattim = gdattim . substring ( 0 , 11 ) + ftype + ftime ; } return gdattim ; }
This subroutine converts an integer time array containing the date,
time and forecast time into a GEMPAK grid time.

@param intdtf  integer array of date, time and forecast time

@return  formatted string
This subroutine converts an integer time array containing the date time and forecast time into a GEMPAK grid time .