aboutsummaryrefslogtreecommitdiff
path: root/src/sun.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sun.h')
-rw-r--r--src/sun.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sun.h b/src/sun.h
index 9a571e8..dc22a6c 100644
--- a/src/sun.h
+++ b/src/sun.h
@@ -1,5 +1,10 @@
+#include <stdbool.h>
float to_rad (float n);
float to_deg (float n);
-float calculateSun(int year,int month,int day,float lat, float lng,int localOffset, int sunset);
+float calculateSun(int year,int month,int day,float lat, float lng,int localOffset, bool sunset);
+float getSunrise(float lat, float lang);
+float getSunset(float lat, float lang);
+
+bool isDark (float sunrise, float sunset);