Practical Astronomy
pa_cli_datetime Namespace Reference

Functions

def doe_year (year)
 
def cd_to_dn (date_string)
 
def gd_to_jd (greenwich_date)
 
def jd_to_gd (julian_date)
 
def ct_to_dh (civil_time)
 
def dh_to_ct (decimal_hours)
 
def lct_to_ut (civil_date, civil_time, is_dst, zone_correction)
 
def ut_to_lct (civil_date, universal_time, is_dst, zone_correction)
 
def ut_to_gst (universal_time, greenwich_date)
 
def gst_to_ut (greenwich_sidereal_time, greenwich_date)
 
def gst_to_lst (greenwich_sidereal_time, geographical_longitude)
 
def lst_to_gst (local_sidereal_time, geographical_longitude)
 

Function Documentation

◆ cd_to_dn()

def pa_cli_datetime.cd_to_dn (   date_string)
Convert civil date to day number.

◆ ct_to_dh()

def pa_cli_datetime.ct_to_dh (   civil_time)
Convert civil time to decimal hours.

◆ dh_to_ct()

def pa_cli_datetime.dh_to_ct (   decimal_hours)
Convert decimal hours to civil time.

◆ doe_year()

def pa_cli_datetime.doe_year (   year)
Calculate date of Easter for a given year.

◆ gd_to_jd()

def pa_cli_datetime.gd_to_jd (   greenwich_date)
Convert Greenwich date to Julian date.

◆ gst_to_lst()

def pa_cli_datetime.gst_to_lst (   greenwich_sidereal_time,
  geographical_longitude 
)
Convert Greenwich sidereal time to local sidereal time

◆ gst_to_ut()

def pa_cli_datetime.gst_to_ut (   greenwich_sidereal_time,
  greenwich_date 
)
Convert Greenwich sidereal time to universal time

◆ jd_to_gd()

def pa_cli_datetime.jd_to_gd (   julian_date)
Convert Julian date to Greenwich date.

◆ lct_to_ut()

def pa_cli_datetime.lct_to_ut (   civil_date,
  civil_time,
  is_dst,
  zone_correction 
)
Convert local civil time to universal time.

◆ lst_to_gst()

def pa_cli_datetime.lst_to_gst (   local_sidereal_time,
  geographical_longitude 
)
Convert local sidereal time to Greenwich sidereal time

◆ ut_to_gst()

def pa_cli_datetime.ut_to_gst (   universal_time,
  greenwich_date 
)
Convert Universal time to Greenwich sidereal time

◆ ut_to_lct()

def pa_cli_datetime.ut_to_lct (   civil_date,
  universal_time,
  is_dst,
  zone_correction 
)
Convert universal time to local civil time.