|
Practical Astronomy
|
Functions | |
| get_date_of_easter (year) | |
| civil_date_to_day_number (month, day, year) | |
| greenwich_date_to_julian_date (day, month, year) | |
| julian_date_to_greenwich_date (julianDate) | |
| julian_date_day (julianDate) | |
| julian_date_month (julianDate) | |
| julian_date_year (julianDate) | |
| julian_date_to_weekday_name (julianDate) | |
| civil_time_to_decimal_hours (hours, minutes, seconds) | |
| decimal_hour_hour (decimalHours) | |
| decimal_hour_minutes (decimalHours) | |
| decimal_hour_seconds (decimalHours) | |
| decimal_hours_to_civil_time (decimalHours) | |
| local_civil_time_to_universal_time (lctHours, lctMinutes, lctSeconds, isDaylightSavings, zoneCorrection, localDay, localMonth, localYear) | |
| universal_time_to_local_civil_time (utHours, utMinutes, utSeconds, isDayLightSavings, zoneCorrection, gwDay, gwMonth, gwYear) | |
| universal_time_to_greenwich_sidereal_time (utHours, utMinutes, utSeconds, gwDay, gwMonth, gwYear) | |
| greenwich_sidereal_time_to_universal_time (gstHours, gstMinutes, gstSeconds, gwDay, gwMonth, gwYear) | |
| greenwich_sidereal_time_to_local_sidereal_time (gstHours, gstMinutes, gstSeconds, geographicalLongitude) | |
| local_sidereal_time_to_greenwich_sidereal_time (lstHours, lstMinutes, lstSeconds, geographicalLongitude) | |
| civil_date_to_day_number | ( | month, | |
| day, | |||
| year | |||
| ) |
Returns the day number for the date specified.
| civil_time_to_decimal_hours | ( | hours, | |
| minutes, | |||
| seconds | |||
| ) |
Convert a Civil Time (hours,minutes,seconds) to Decimal Hours
| decimal_hour_hour | ( | decimalHours | ) |
Return the hour part of a Decimal Hours
| decimal_hour_minutes | ( | decimalHours | ) |
Return the minutes part of a Decimal Hours
| decimal_hour_seconds | ( | decimalHours | ) |
Return the seconds part of a Decimal Hours
| decimal_hours_to_civil_time | ( | decimalHours | ) |
Convert Decimal Hours to Civil Time
| get_date_of_easter | ( | year | ) |
Gets the date of Easter for the year specified.
Arguments:
year: Year for which you'd like the date of Easter.
Returns:
month
day
year
| greenwich_date_to_julian_date | ( | day, | |
| month, | |||
| year | |||
| ) |
Convert a Greenwich Date/Civil Date (day,month,year) to Julian Date
| greenwich_sidereal_time_to_local_sidereal_time | ( | gstHours, | |
| gstMinutes, | |||
| gstSeconds, | |||
| geographicalLongitude | |||
| ) |
Convert Greenwich Sidereal Time to Local Sidereal Time
Returns:
LST hours
LST minutes
LST seconds
| greenwich_sidereal_time_to_universal_time | ( | gstHours, | |
| gstMinutes, | |||
| gstSeconds, | |||
| gwDay, | |||
| gwMonth, | |||
| gwYear | |||
| ) |
Convert Greenwich Sidereal Time to Universal Time
Returns:
UT hours
UT minutes
UT seconds
Warning Flag
| julian_date_day | ( | julianDate | ) |
Returns the day part of a Julian Date
| julian_date_month | ( | julianDate | ) |
Returns the month part of a Julian Date
| julian_date_to_greenwich_date | ( | julianDate | ) |
Convert a Julian Date to Greenwich Date/Civil Date (day,month,year)
| julian_date_to_weekday_name | ( | julianDate | ) |
Convert a Julian Date to Day-of-Week (e.g., Sunday)
| julian_date_year | ( | julianDate | ) |
Returns the year part of a Julian Date
| local_civil_time_to_universal_time | ( | lctHours, | |
| lctMinutes, | |||
| lctSeconds, | |||
| isDaylightSavings, | |||
| zoneCorrection, | |||
| localDay, | |||
| localMonth, | |||
| localYear | |||
| ) |
Convert local Civil Time to Universal Time
Returns:
UT hours
UT mins
UT secs
GW day
GW month
GW year
| local_sidereal_time_to_greenwich_sidereal_time | ( | lstHours, | |
| lstMinutes, | |||
| lstSeconds, | |||
| geographicalLongitude | |||
| ) |
Convert Local Sidereal Time to Greenwich Sidereal Time
Returns:
GST hours
GST minutes
GST seconds
| universal_time_to_greenwich_sidereal_time | ( | utHours, | |
| utMinutes, | |||
| utSeconds, | |||
| gwDay, | |||
| gwMonth, | |||
| gwYear | |||
| ) |
Convert Universal Time to Greenwich Sidereal Time
Returns:
GST hours
GST minutes
GST seconds
| universal_time_to_local_civil_time | ( | utHours, | |
| utMinutes, | |||
| utSeconds, | |||
| isDayLightSavings, | |||
| zoneCorrection, | |||
| gwDay, | |||
| gwMonth, | |||
| gwYear | |||
| ) |
Convert Universal Time to local Civil Time
Returns:
LCT hours
LCT minutes
LCT seconds
day
month
year