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
297273fc
Commit
297273fc
authored
Jan 30, 2020
by
Uwe Schulzweida
Browse files
setBaseTime: added support for TUNIT_YEAR.
parent
b7c8a6e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
297273fc
...
...
@@ -205,6 +205,14 @@ int setBaseTime(const char *timeunits, taxis_t *taxis)
timeunit
=
-
1
;
}
}
else
if
(
timeunit
==
TUNIT_YEAR
)
{
if
(
!
strStartsWith
(
tu
+
pos
,
"%y.%f"
)
)
{
Warning
(
"Unsupported format %s for TIMEUNIT year!"
,
tu
+
pos
);
timeunit
=
-
1
;
}
}
else
{
Warning
(
"Unsupported format for time units: %s!"
,
tu
);
...
...
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