Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
bafa8785
Commit
bafa8785
authored
Oct 11, 2006
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
364cb509
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Inttime.c
View file @
bafa8785
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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