From 9310f624bbc8e445b0bd577a0e1aa48c2b34b67d Mon Sep 17 00:00:00 2001 From: Ondrej Pokorny Date: Wed, 3 May 2023 11:02:13 +0200 Subject: [PATCH] microseconds added to juliandate --- src/pymap3d/sidereal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymap3d/sidereal.py b/src/pymap3d/sidereal.py index ff79f13..673a876 100644 --- a/src/pymap3d/sidereal.py +++ b/src/pymap3d/sidereal.py @@ -84,7 +84,7 @@ def juliandate(time: datetime) -> float: A = int(year / 100.0) B = 2 - A + int(A / 4.0) - C = ((time.second / 60.0 + time.minute) / 60.0 + time.hour) / 24.0 + C = (((time.second + time.microsecond / 1e6) / 60.0 + time.minute) / 60.0 + time.hour) / 24.0 return int(365.25 * (year + 4716)) + int(30.6001 * (month + 1)) + time.day + B - 1524.5 + C