@spiceErrorCheck<EOL>def timdef(action, item, lenout, value=None):
action = stypes.stringToCharP(action)<EOL>item = stypes.stringToCharP(item)<EOL>lenout = ctypes.c_int(lenout)<EOL>if value is None:<EOL><INDENT>value = stypes.stringToCharP(lenout)<EOL><DEDENT>else:<EOL><INDENT>value = stypes.stringToCharP(value)<EOL><DEDENT>libspice.timdef_c(action, item, lenout, value)<EOL>return stypes.toPythonString(value)<EOL>
Set and retrieve the defaults associated with calendar input strings.

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

:param action: the kind of action to take "SET" or "GET".
:type action: str
:param item: the default item of interest.
:type item: str
:param lenout: the length of list for output.
:type lenout: int
:param value: the optional string used if action is "SET"
:type value: str
:return: the value associated with the default item.
:rtype: str