DevTools Logo

Local Sidereal Time

Local Sidereal Time

Julian Date, GMST, GAST and local sidereal time from a date, time zone and east-positive longitude.

Runs in your browser
Try an example

Date, zone and longitude

East is positive: Istanbul is +28.98, New York is -74.01. A trailing E or W also works. Latitude doesn't affect sidereal time.

Sidereal clock

2000-01-01T12:00:00Z
UTC is used as UT1; they differ by under 0.9 s. Mean time (GMST/LST) follows Meeus ch. 12; apparent time (GAST) adds the equation of the equinoxes.
LST (mean)
18:41:50.5484
18h 41m 50.5484s · 18.697375 h
LST (apparent)
18:41:49.6907
18.697136 h
GMST
18:41:50.5484
18h 41m 50.5484s
GAST
18:41:49.6907
eq. of equinoxes -0.8577 s
Julian Date (UT)
2451545.00000
longitude 0° east

LST = GMST + longitude/15 hours. Intended as a primitive for other celestial mechanics work. Runs locally.

Examples

Greenwich identity

Input
computeSidereal(utc, 0)
Output
lstHours === gmstHours

Local sidereal time at longitude 0 is GMST.

About this tool

computeSidereal(utc, longitude) returns Julian Date, GMST and LST. LST = wrap(GMST hours + longitude/15).

At longitude 0, LST equals GMST. +15° of longitude adds one sidereal hour.

Copy the JSON into other celestial-mechanics formulas. No network calls.

How to use this tool

  1. Set time and longitude

    Use city search or type a longitude.

  2. Compute

    Read JD, GMST and LST as clocks and hours.

  3. Copy JSON

    Reuse the numbers in your own formulas.

Use cases

Telescope pointing helpers

LST is the first input to hour-angle formulas.

House-system debugging

RAMC is GMST + longitude.

Common mistakes

Mistake:Adding longitude in hours instead of degrees.

Fix:The engine expects degrees and divides by 15 internally.

Frequently asked questions

What does this tool do?

It returns Julian Date, GMST and LST from UTC and longitude via computeSidereal.

How is LST related to GMST?

LST hours = wrap(GMST hours + longitude/15). At longitude 0 they match.

Is this GMST or GAST?

The value is astronomy-engine SiderealTime (mean sidereal time used as GMST).

Is anything uploaded?

No.

References & standards