mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-07 11:52:27 +00:00
relaxed hour limits
SCCS-file: zic.c SCCS-SID: 8.13
This commit is contained in:
committed by
Paul Eggert
parent
5c4c384ec9
commit
e3f846bd73
10
zic.c
10
zic.c
@ -945,15 +945,17 @@ const int signable;
|
||||
error(errstring);
|
||||
return 0;
|
||||
}
|
||||
if ((hh < 0 || hh >= HOURSPERDAY ||
|
||||
if (hh < 0 ||
|
||||
mm < 0 || mm >= MINSPERHOUR ||
|
||||
ss < 0 || ss > SECSPERMIN) &&
|
||||
!(hh == HOURSPERDAY && mm == 0 && ss == 0)) {
|
||||
ss < 0 || ss > SECSPERMIN) {
|
||||
error(errstring);
|
||||
return 0;
|
||||
}
|
||||
if (noise && hh == HOURSPERDAY)
|
||||
if (noise && hh == HOURSPERDAY && mm == 0 && ss == 0)
|
||||
warning(_("24:00 not handled by pre-1998 versions of zic"));
|
||||
if (noise && (hh > HOURSPERDAY ||
|
||||
(hh == HOURSPERDAY && (mm != 0 || ss != 0))))
|
||||
warning(_("values over 24 hours not handled by pre-2007 versions of zic"));
|
||||
return eitol(sign) *
|
||||
(eitol(hh * MINSPERHOUR + mm) *
|
||||
eitol(SECSPERMIN) + eitol(ss));
|
||||
|
||||
Reference in New Issue
Block a user