Commit 297273fc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

setBaseTime: added support for TUNIT_YEAR.

parent b7c8a6e8
......@@ -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);
......
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