cdm/src/main/java/ucar/nc2/iosp/grads/GradsTimeDimension.java
public GradsTimeStruct makeTimeStruct(int timeIndex) {
        double   tVal     = getValues()[timeIndex];
        Date     d        = DateUnit.getStandardDate(tVal + " " + getUnit());
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
        calendar.setTime(d);
        return makeTimeStruct(calendar);
    }
public GradsTimeStruct makeTimeStruct(int timeIndex) {
        double   tVal     = getValues()[timeIndex];
        Date     d        = DateUnit.getStandardDate(tVal + " " + getUnit());
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
        calendar.setTime(d);
        return makeTimeStruct(calendar);
    }
public GradsTimeStruct makeTimeStruct ( int timeIndex ) { double tVal = getValues ( ) [ timeIndex ] ; Date d = DateUnit . getStandardDate ( tVal + " " + getUnit ( ) ) ; Calendar calendar = Calendar . getInstance ( ) ; calendar . setTimeZone ( java . util . TimeZone . getTimeZone ( "GMT" ) ) ; calendar . setTime ( d ) ; return makeTimeStruct ( calendar ) ; }
Make a time struct from the index.

@param timeIndex  the time value index

@return the corresponding TimeStruct
Make a time struct from the index .