Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c16c9c89
Commit
c16c9c89
authored
Sep 27, 2010
by
Uwe Schulzweida
Browse files
cdfDefTime: bug fix for time units 3HOURS, 6HOURS, 12HOURS
parent
ac869d8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c16c9c89
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
...
...
src/stream_cdf.c
View file @
c16c9c89
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment