From b1be91bc7562571bcb156d20ec3f9c8b69340722 Mon Sep 17 00:00:00 2001 From: We-unite <3205135446@qq.com> Date: Fri, 8 Mar 2024 22:53:11 +0800 Subject: Calculate sunrise and sunset, showing time and azimuth Add sun trace table, and put all data into file --- src/Julian.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Julian.cpp') diff --git a/src/Julian.cpp b/src/Julian.cpp index 5a0522b..ecfe391 100644 --- a/src/Julian.cpp +++ b/src/Julian.cpp @@ -86,6 +86,5 @@ double Julian::getJulianKiloYear(time_t time) { //儒略千年数转时间戳 time_t Julian::kiloYearToTime(double t, int year) { double jd = t * 365250.0 + 2451545.0; - time_t time = (time_t)((jd - 2440587.5) * 86400.0 - delta_t(year)); - return time; + return (time_t)((jd - 2440587.5) * 86400.0 - delta_t(year)); } -- cgit v1.2.3-70-g09d2