From 04e684ecc17f39c6b227486e373b33a7a36ac939 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 26 Jul 2013 17:01:52 +0200 Subject: [PATCH] Created get_sign() function --- src/gradix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gradix.c b/src/gradix.c index fc3f40a..3e26a06 100644 --- a/src/gradix.c +++ b/src/gradix.c @@ -230,6 +230,12 @@ set_location_and_time(double lon, double lat, double alt, int year, int month, i return 1; } +long int +get_sign(double pos) +{ + return (int)ceilf(pos / 30.0); +} + moonPhase * get_moon_phase(gint year, gint month, gint day, gint hour, gint min, gint sec) {