pint.utils.parse_time
- pint.utils.parse_time(input: float | Time | Quantity | int | str, scale: str = 'tdb', precision: int = 9) Time[source]
Parse an
astropy.time.Timeobject from a range of input types- Parameters:
input (astropy.time.Time, astropy.units.Quantity, numpy.ndarray, float, int, str) – Value to parse
scale (str, optional) – Scale of time for conversion
precision (int, optional) – Precision for time
- Return type: