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

No commit message

No commit message
parent 364cb509
......@@ -94,9 +94,13 @@ void *Inttime(void *argument)
if ( len )
{
if ( strncmp(unit, "minutes", len) == 0 ) incunit = 60;
else if ( strncmp(unit, "hours", len) == 0 ) incunit = 3600;
else if ( strncmp(unit, "days", len) == 0 ) incunit = 86400;
else cdoAbort("unsupported time unit %s", unit);
else if ( strncmp(unit, "hours", len) == 0 ) incunit = 3600;
else if ( strncmp(unit, "days", len) == 0 ) incunit = 86400;
/*
else if ( strncmp(unit, "months", len) == 0 ) incunit = 1;
else if ( strncmp(unit, "years", len) == 0 ) incunit = 12;
*/
else cdoAbort("unsupported time unit >%s<", unit);
}
}
/* increment in seconds */
......
Supports Markdown
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