mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 17:12:46 +00:00
Y2K fix. Fix by jsm28@cam.ac.uk via OpenBSD
This commit is contained in:
parent
8f4eff3a85
commit
2d9f6852dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37868
@ -84,7 +84,7 @@ main()
|
||||
days = (GMT->tm_yday + 1) + ((GMT->tm_hour +
|
||||
(GMT->tm_min / 60.0) + (GMT->tm_sec / 3600.0)) / 24.0);
|
||||
for (cnt = EPOCH; cnt < GMT->tm_year; ++cnt)
|
||||
days += isleap(cnt) ? 366 : 365;
|
||||
days += isleap(1900 + cnt) ? 366 : 365;
|
||||
today = potm(days) + .5;
|
||||
(void)printf("The Moon is ");
|
||||
if ((int)today == 100)
|
||||
|
Loading…
Reference in New Issue
Block a user