Calculating Local Sidereal Time from local time?

I'm trying to write a Unix programming script that will calculate Local Sidereal Time (LST) for particular places and times. I know you need the longitude of the location, but I don't know how to actually calculate LST from Longitude and local time.

2 answers 2