1Clocks: from your watch to the stars
Astronomy counts time in Julian days, a running day count since 4713 BC, so any two moments subtract cleanly. The orbits run on Terrestrial Time, an even clock that ignores the Earth's slightly wobbly spin; it is ahead of ordinary time by ΔT, about a minute.
The stars come back to the same place every sidereal day, 3 minutes 56 seconds short of 24 hours, because the Earth also moves along its orbit. Local sidereal time says which right ascension is on your meridian right now: it is what turns the fixed star map into tonight's sky.
JD = tms / 86 400 000 + 2 440 587.5Unix milliseconds to Julian dayJD now = …
TT = UT + ΔTTerrestrial Time, which the orbits useΔT = …
GMST = 280.46062° + 360.98564737° · dsidereal time at Greenwich, d days since JD 2 451 545d = …, GMST = …
LST = GMST + λ + Δψ cos εadd your longitude λ (east positive) and the equation of the equinoxes… … … → LST = …