mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 20:50:51 +00:00
some time_t progress
SCCS-file: zdump.c SCCS-SID: 7.56
This commit is contained in:
committed by
Paul Eggert
parent
6067fdfa17
commit
70a18e14ac
12
zdump.c
12
zdump.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user