Skip to content

Commit

Permalink
microseconds added to juliandate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Pokorny authored and scivision committed Nov 15, 2023
1 parent 2b8eef7 commit 9310f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymap3d/sidereal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9310f62

Please sign in to comment.