e1ff1efee3
Submitted by Peter Stromberg <home@wilfried.net>. wmSun displays the current day's sun rise and set times. You must enter your latitude and longitude correctly for it to work.
13 lines
594 B
Plaintext
13 lines
594 B
Plaintext
$OpenBSD: patch-wmSun_c,v 1.1.1.1 2001/01/09 22:10:18 naddy Exp $
|
|
--- wmSun/wmSun.c.orig Thu Feb 4 18:43:09 1999
|
|
+++ wmSun/wmSun.c Tue Jan 9 18:05:54 2001
|
|
@@ -129,7 +129,7 @@ int main(int argc, char *argv[]) {
|
|
int Year, Month, DayOfWeek, OldLocalDayOfMonth;
|
|
int LocalDayOfMonth, DayOfMonth;
|
|
int Hours, Mins, Secs, OldSecs, digit, xoff, xsize;
|
|
- long CurrentLocalTime, CurrentGMTTime, date;
|
|
+ time_t CurrentLocalTime, CurrentGMTTime, date;
|
|
double UT, val, RA, DEC, LTRise, LTSet, LocalHour, hour24();
|
|
int D, H, M, S, sgn, A, B, q;
|
|
char str[10];
|