Logo Search packages:      
Sourcecode: icu version File versions  Download package

Returns the current Greenwich sidereal time, measured in hours

Returns the current Greenwich sidereal time, measured in hours

Deprecated:
ICU 2.4. This class may be removed or modified.

Definition at line 379 of file astro.cpp.

References fTime.

Referenced by getLocalSidereal().

                                                {
    if (isINVALID(siderealTime)) {
        // See page 86 of "Practial Astronomy with your Calculator",
        // by Peter Duffet-Smith, for details on the algorithm.

        double UT = normalize(fTime/(double)HOUR_MS, 24.);

        siderealTime = normalize(getSiderealOffset() + UT*1.002737909, 24.);
    }
    return siderealTime;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index