@spiceErrorCheck<EOL>def etcal(et, lenout=_default_len_out):
lenout = ctypes.c_int(lenout)<EOL>string = stypes.stringToCharP(lenout)<EOL>if hasattr(et, "<STR_LIT>"):<EOL><INDENT>strings = []<EOL>for t in et:<EOL><INDENT>libspice.etcal_c(t, lenout, string)<EOL>checkForSpiceError(None)<EOL>strings.append(stypes.toPythonString(string))<EOL><DEDENT>return strings<EOL><DEDENT>else:<EOL><INDENT>et = ctypes.c_double(et)<EOL>libspice.etcal_c(et, lenout, string)<EOL>return stypes.toPythonString(string)<EOL><DEDENT>
Convert from an ephemeris epoch measured in seconds past
the epoch of J2000 to a calendar string format using a
formal calendar free of leapseconds.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/etcal_c.html

:param et: Ephemeris time measured in seconds past J2000.
:type et: Union[float,Iterable[float]]
:param lenout: Length of output string.
:type lenout: int
:return: A standard calendar representation of et.
:rtype: str