Commit c16c9c89 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefTime: bug fix for time units 3HOURS, 6HOURS, 12HOURS

parent ac869d8f
2010-09-27 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfDefTime: bug fix for time units 3HOURS, 6HOURS, 12HOURS
2010-09-17 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using CGRIBEX library version 1.4.6
......
......@@ -886,6 +886,10 @@ void cdfDefTime(int streamID)
cdiDecodeTime(rtime, &hour, &minute, &second);
if ( timeunit == TUNIT_QUARTER ) timeunit = TUNIT_MINUTE;
if ( timeunit == TUNIT_3HOURS ||
timeunit == TUNIT_6HOURS ||
timeunit == TUNIT_12HOURS ) timeunit = TUNIT_HOUR;
sprintf(unitstr, "%s since %d-%02d-%02d %02d:%02d:%02d",
tunitNamePtr(timeunit), year, month, day, hour, minute, second);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment