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 .