Practical Astronomy
practical_astronomy.pa_datetime Namespace Reference

Functions

def get_date_of_easter (year)
 
def civil_date_to_day_number (month, day, year)
 
def greenwich_date_to_julian_date (day, month, year)
 
def julian_date_to_greenwich_date (julianDate)
 
def julian_date_day (julianDate)
 
def julian_date_month (julianDate)
 
def julian_date_year (julianDate)
 
def julian_date_to_weekday_name (julianDate)
 
def civil_time_to_decimal_hours (hours, minutes, seconds)
 
def decimal_hour_hour (decimalHours)
 
def decimal_hour_minutes (decimalHours)
 
def decimal_hour_seconds (decimalHours)
 
def decimal_hours_to_civil_time (decimalHours)
 
def local_civil_time_to_universal_time (lctHours, lctMinutes, lctSeconds, isDaylightSavings, zoneCorrection, localDay, localMonth, localYear)
 
def universal_time_to_local_civil_time (utHours, utMinutes, utSeconds, isDayLightSavings, zoneCorrection, gwDay, gwMonth, gwYear)
 
def universal_time_to_greenwich_sidereal_time (utHours, utMinutes, utSeconds, gwDay, gwMonth, gwYear)
 
def greenwich_sidereal_time_to_universal_time (gstHours, gstMinutes, gstSeconds, gwDay, gwMonth, gwYear)
 
def greenwich_sidereal_time_to_local_sidereal_time (gstHours, gstMinutes, gstSeconds, geographicalLongitude)
 
def local_sidereal_time_to_greenwich_sidereal_time (lstHours, lstMinutes, lstSeconds, geographicalLongitude)
 

Function Documentation

◆ civil_date_to_day_number()

def practical_astronomy.pa_datetime.civil_date_to_day_number (   month,
  day,
  year 
)
 Returns the day number for the date specified. 

◆ civil_time_to_decimal_hours()

def practical_astronomy.pa_datetime.civil_time_to_decimal_hours (   hours,
  minutes,
  seconds 
)
 Convert a Civil Time (hours,minutes,seconds) to Decimal Hours 

◆ decimal_hour_hour()

def practical_astronomy.pa_datetime.decimal_hour_hour (   decimalHours)
 Return the hour part of a Decimal Hours 

◆ decimal_hour_minutes()

def practical_astronomy.pa_datetime.decimal_hour_minutes (   decimalHours)
 Return the minutes part of a Decimal Hours 

◆ decimal_hour_seconds()

def practical_astronomy.pa_datetime.decimal_hour_seconds (   decimalHours)
 Return the seconds part of a Decimal Hours 

◆ decimal_hours_to_civil_time()

def practical_astronomy.pa_datetime.decimal_hours_to_civil_time (   decimalHours)
 Convert Decimal Hours to Civil Time 

◆ get_date_of_easter()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.julian_date_day (   julianDate)
 Returns the day part of a Julian Date 

◆ julian_date_month()

def practical_astronomy.pa_datetime.julian_date_month (   julianDate)
 Returns the month part of a Julian Date 

◆ julian_date_to_greenwich_date()

def practical_astronomy.pa_datetime.julian_date_to_greenwich_date (   julianDate)
 Convert a Julian Date to Greenwich Date/Civil Date (day,month,year) 

◆ julian_date_to_weekday_name()

def practical_astronomy.pa_datetime.julian_date_to_weekday_name (   julianDate)
 Convert a Julian Date to Day-of-Week (e.g., Sunday) 

◆ julian_date_year()

def practical_astronomy.pa_datetime.julian_date_year (   julianDate)
 Returns the year part of a Julian Date 

◆ local_civil_time_to_universal_time()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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()

def practical_astronomy.pa_datetime.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