aboutsummaryrefslogtreecommitdiffstats
path: root/src/solar.h
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2009-12-28 14:59:41 +0100
committerJon Lund Steffensen <jonlst@gmail.com>2009-12-28 14:59:41 +0100
commit8595c4887e12b208baa41ed56c6b1885ab48b0e8 (patch)
tree6d12677a73f3799452484329d248bb32a910bb69 /src/solar.h
parentContinously change color temperature (Add -o for one shot mode). (diff)
downloadredshift-ng-8595c4887e12b208baa41ed56c6b1885ab48b0e8.tar.gz
redshift-ng-8595c4887e12b208baa41ed56c6b1885ab48b0e8.tar.bz2
redshift-ng-8595c4887e12b208baa41ed56c6b1885ab48b0e8.tar.xz
Use struct timespec instead of time_t for increased time precision.
Diffstat (limited to 'src/solar.h')
-rw-r--r--src/solar.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/solar.h b/src/solar.h
index 5897373..304b8ec 100644
--- a/src/solar.h
+++ b/src/solar.h
@@ -44,7 +44,8 @@ typedef enum {
SOLAR_TIME_MAX
} solar_time_t;
-double solar_elevation(time_t t, double lat, double lon);
-void solar_table_fill(time_t date, double lat, double lon, time_t *table);
+double solar_elevation(struct timespec date, double lat, double lon);
+void solar_table_fill(struct timespec date, double lat, double lon,
+ time_t *table);
#endif /* ! _SOLAR_H */