SiderealTime
✖
SiderealTime
gives the right ascension of the local meridian for the specified date and location.
gives the right ascensions of the local meridians for all specified locations on the specified dates.
gives the mean sidereal time for the specified date, location and aggregation function.
Details


- Sidereal time is typically used to locate celestial objects in the night sky and to decide when and where to point a telescope for optimal observation.
- SiderealTime returns a Quantity angle expressed in mixed units of hours, minutes and seconds of right ascension, as is traditionally done with angles measured along the celestial equator.
- SiderealTime[loc,date], equivalent to SiderealTime["ApparentTime",loc,date], computes the local apparent or true sidereal time, based on the apparent equator and equinox of date, hence including the effects of both precession and nutation.
- SiderealTime["MeanTime",loc,date] computes the local mean sidereal time based on the mean equator and equinox of date, including precession but averaging over nutation.
- SiderealTime[] makes use of $GeoLocation and $TimeZone to determine your location and time zone.
- Locations can be specified as GeoPosition objects, {lat,lon} pairs in degrees, Entity geo locations or GeoGraphics primitives.
- datespec can be a DateObject expression, a TimeObject expression, a date string or a {y,m,d,h,m,s} date list.
- datespec is assumed to be in $TimeZone, unless it is a DateObject or TimeObject expression with an explicit TimeZone option value.
- loc and date can be either individual items or lists of them.
- If datespec is a list of dates, then the results will contain TimeSeries objects.
- datespec can be specified as {start,end,increment} for compatibility with DateRange specifications.
- SiderealTime[…,func] is used to specify the format of output when extended locations are specified.
- Possible settings for func include:
-
Automatic returns intervals for extended locations only Interval returns intervals for all specified locations Mean returns mean value for extended locations Min returns minimum values for extended locations Max returns maximum values for extended locations StandardDeviation returns standard deviation for extended locations
Examples
open allclose allBasic Examples (5)Summary of the most common use cases
Compute the sidereal time for your current location:

https://wolfram.com/xid/0jz5qcn081c93m-dnpkjh

Compute the sidereal time for a specified date:

https://wolfram.com/xid/0jz5qcn081c93m-bv5fc0

Compute the sidereal time for a specified location:

https://wolfram.com/xid/0jz5qcn081c93m-frupmt

Compute the sidereal time for a specified latitude/longitude and date:

https://wolfram.com/xid/0jz5qcn081c93m-k5huuj

Compute the sidereal time for a specified city and date:

https://wolfram.com/xid/0jz5qcn081c93m-bild8d

Scope (8)Survey of the scope of standard use cases
Dates (3)
Dates can be specified as a DateObject:

https://wolfram.com/xid/0jz5qcn081c93m-t1phag

Dates can be specified as a date string:

https://wolfram.com/xid/0jz5qcn081c93m-zbahi

Generate the sidereal time for a range of dates:

https://wolfram.com/xid/0jz5qcn081c93m-g0c68v

Locations (5)
Locations can be latitude/longitude pairs:

https://wolfram.com/xid/0jz5qcn081c93m-mmgexd

Cities are treated as single, specific locations:

https://wolfram.com/xid/0jz5qcn081c93m-4kw4q7

Results for extended locations are intervals, by default:

https://wolfram.com/xid/0jz5qcn081c93m-zm0h2h

The form of the results for extended locations can be overridden:

https://wolfram.com/xid/0jz5qcn081c93m-c6w1j1

Generate the sidereal time for multiple locations:

https://wolfram.com/xid/0jz5qcn081c93m-o7x97u

Applications (2)Sample problems that can be solved with this function
Plot the equation of time by finding the difference between the Sun's right ascension at noon and the sidereal time at noon:

https://wolfram.com/xid/0jz5qcn081c93m-kp2kf

https://wolfram.com/xid/0jz5qcn081c93m-e5gjsa

https://wolfram.com/xid/0jz5qcn081c93m-ewa0e

https://wolfram.com/xid/0jz5qcn081c93m-c20uam

The difference between apparent and mean sidereal times is called the equation of the equinoxes:

https://wolfram.com/xid/0jz5qcn081c93m-5repxo

Display the equation of the equinoxes over a year:

https://wolfram.com/xid/0jz5qcn081c93m-tbxomc

https://wolfram.com/xid/0jz5qcn081c93m-hysora

The same computation over 20 years, which shows the main nutation cycle of 18.6 years:

https://wolfram.com/xid/0jz5qcn081c93m-47ben

The primary period corresponds to an oscillation of 17.2 arc seconds of nutation in longitude:

https://wolfram.com/xid/0jz5qcn081c93m-b3kc07

Properties & Relations (3)Properties of the function, and connections to other functions
The output of SiderealTime is an angle, not a time:

https://wolfram.com/xid/0jz5qcn081c93m-pbtl98


https://wolfram.com/xid/0jz5qcn081c93m-ocqi9h


https://wolfram.com/xid/0jz5qcn081c93m-wj9zbg

SiderealTime tracks Earth's rotation with respect to the fixed stars, with a full rotation taking one sidereal day:

https://wolfram.com/xid/0jz5qcn081c93m-61jdoo

Earth rotates with respect to the fixed stars in less than one day, and it needs to rotate a bit more to complete a full (solar) day:

https://wolfram.com/xid/0jz5qcn081c93m-woz3xs

The effect accumulates during one year and hence Earth rotates 366.242 times with respect to the fixed stars in 365.242 days:

https://wolfram.com/xid/0jz5qcn081c93m-46nlbi


https://wolfram.com/xid/0jz5qcn081c93m-i969xj


https://wolfram.com/xid/0jz5qcn081c93m-2q7ym8

Possible Issues (1)Common pitfalls and unexpected behavior
Although it looks like a time-based concept, SiderealTime is actually an angle:

https://wolfram.com/xid/0jz5qcn081c93m-jhgpqf

Neat Examples (1)Surprising or curious use cases

https://wolfram.com/xid/0jz5qcn081c93m-i1rhz0
This is the sidereal time of that location at that time:

https://wolfram.com/xid/0jz5qcn081c93m-3elp6y

Take the right ascensions of the Sun, the Moon and the planets:

https://wolfram.com/xid/0jz5qcn081c93m-jt3gg0

Construct text labels for them:

https://wolfram.com/xid/0jz5qcn081c93m-1aoala
Plot the directions of the Sun, the Moon and the planets as viewed from the South Pole, with respect to the fixed stars:

https://wolfram.com/xid/0jz5qcn081c93m-iqh820

Wolfram Research (2014), SiderealTime, Wolfram Language function, https://reference.wolfram.com/language/ref/SiderealTime.html (updated 2021).
Text
Wolfram Research (2014), SiderealTime, Wolfram Language function, https://reference.wolfram.com/language/ref/SiderealTime.html (updated 2021).
Wolfram Research (2014), SiderealTime, Wolfram Language function, https://reference.wolfram.com/language/ref/SiderealTime.html (updated 2021).
CMS
Wolfram Language. 2014. "SiderealTime." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/SiderealTime.html.
Wolfram Language. 2014. "SiderealTime." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/SiderealTime.html.
APA
Wolfram Language. (2014). SiderealTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SiderealTime.html
Wolfram Language. (2014). SiderealTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SiderealTime.html
BibTeX
@misc{reference.wolfram_2025_siderealtime, author="Wolfram Research", title="{SiderealTime}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/SiderealTime.html}", note=[Accessed: 27-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_siderealtime, organization={Wolfram Research}, title={SiderealTime}, year={2021}, url={https://reference.wolfram.com/language/ref/SiderealTime.html}, note=[Accessed: 27-March-2025
]}