DevTools Logo

Local Sidereal Time

Local Sidereal Time

Julian Date, GMST and LST from UTC and longitude — a developer-facing astronomy primitive

UTC and longitude

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