datetime_conversions

Attributes

SEC_PER_DAY

Functions

convert_tdb_date_to_julian_date(→ float)

Convert a TDB date string to Julian Date.

Module Contents

SEC_PER_DAY = 86400[source]
convert_tdb_date_to_julian_date(input_tdb_date: str | Iterable[str], spice_kernel_dir: str = '') float[source]

Convert a TDB date string to Julian Date.

Parameters:
  • input_tdb_date (str) – The input TDB date string in the format ‘YYYY-MM-DD’.

  • spice_kernel_dir (str, optional) – The directory containing SPICE kernel files. If not provided, the function will not load any SPICE kernels.

Returns:

The Julian Date, as a float, corresponding to the input TDB date.

Return type:

float