From bdca2e997a9344309c979d003e92aa3e3e699207 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Fri, 9 Feb 2024 22:40:31 +0330 Subject: [PATCH] gmst refactor. --- lib/src/julian.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/julian.dart b/lib/src/julian.dart index 8646db3..32e77e7 100644 --- a/lib/src/julian.dart +++ b/lib/src/julian.dart @@ -144,9 +144,9 @@ class Julian { Angle get gmst { /* Calculate Greenwich Mean Sidereal Time according to http://aa.usno.navy.mil/faq/docs/GAST.php */ - final d = value - 2451545.0; + final d = fromJan1_12h_2000(); // Low precision equation is good enough for our purposes. - final rad = (18.697374558 + 24.06570982441908 * d) % 24; + final rad = (18.697374558 + 24.06570982441908 * d) % 24.0; return Angle.degree(rad); }