pystare.temporal.to_stare_timestring#
- to_stare_timestring(tivs, scale='TAI')#
Converts a STARE temporal index value to a STARE timestring
- Parameters:
- tivs: 1D array-like
collection of STARE temporal index values
- scale: str
Temporal scale. Currently only ‘TAI’
- Returns:
- stare_string:
STARE timestring of the form “%Y-%m-%dT%H:%M:%S.%ms (f_res, b_res) (stare_type)”
Examples
>>> time_strings = ['2021-08-26T17:03:56.626 (48 48) (1)'] >>> tiv = pystare.from_stare_timestrings(time_strings, scale='TAI') >>> pystare.to_stare_timestring(tiv) == time_strings True