Skip to content

Commit 02791af

Browse files
authored
Merge pull request #9 from UV-CDAT/issue_10_exception
add error for cdpars
2 parents f4a9800 + 9f7e586 commit 02791af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/db_util/cdTimeConv.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,13 @@ cdParseRelunits(cdCalenType timetype, char* relunits, cdUnitTime* unit, cdCompTi
193193

194194
cdChar2Comp(timetype, basetime, base_comptime);
195195

196+
if ((base_comptime->year == CD_NULL_YEAR)
197+
&& (base_comptime->month == CD_NULL_MONTH)
198+
&& (base_comptime->day == CD_NULL_DAY)
199+
&& (base_comptime->hour == CD_NULL_HOUR)) {
200+
return 1;
201+
}
202+
196203
return 0;
197204
}
198205

0 commit comments

Comments
 (0)