diff options
author | axtloss <axtlos@getcryst.al> | 2024-05-28 19:12:49 +0200 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-05-28 19:12:49 +0200 |
commit | e2d8b96945423c14adbf7a54693f5064d5b157c1 (patch) | |
tree | 0052bad56749bcdf9dd99e822bd9c2ebd54999d4 /src/sun.h | |
parent | ad8ba2db29c0f3abecb292b1059dad554bf7f3b5 (diff) | |
download | autodarkmode-e2d8b96945423c14adbf7a54693f5064d5b157c1.tar.gz autodarkmode-e2d8b96945423c14adbf7a54693f5064d5b157c1.tar.bz2 |
add configuration system
Diffstat (limited to 'src/sun.h')
-rw-r--r-- | src/sun.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |