1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-21 14:12:06 +00:00

some time_t progress

SCCS-file: zdump.c
SCCS-SID: 7.56
This commit is contained in:
Arthur David Olson
2004-11-23 17:04:31 -05:00
committed by Paul Eggert
parent 6067fdfa17
commit 70a18e14ac

12
zdump.c
View File

@ -370,14 +370,18 @@ const long y;
if (myy < y) {
seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
++myy;
if (absolute_max_time - t < seconds)
return absolute_max_time;
if (t > absolute_max_time - seconds) {
t = absolute_max_time;
break;
}
t += seconds;
} else {
--myy;
seconds = isleap(myy) ? SECSPERLYEAR : SECSPERNYEAR;
if (t - absolute_min_time < seconds)
return absolute_min_time;
if (t < absolute_min_time + seconds) {
t = absolute_min_time;
break;
}
t -= seconds;
}
}