(thing)
If THING is a time, date, or datetime, return a string representation of it
    otherwise, return THING unchanged.
If THING is a time, date, or datetime, return a string representation of it
    otherwise, return THING unchanged.
If THING is a time date or datetime return a string representation of it otherwise return THING unchanged .
def _temporal_thing_to_string(thing):
    """
    If THING is a time, date, or datetime, return a string representation of it
    otherwise, return THING unchanged.
    """
    if isinstance(thing, datetime.time):
        return serialize_time(thing)
    elif isinstance(thing, datetime.datetime):
        return serialize_datetime(thing)
    elif isinstance(thing, datetime.date):
        return serialize_date(thing)
    else:
        return thing
def _temporal_thing_to_string ( thing ) : if isinstance ( thing , datetime . time ) : return serialize_time ( thing ) elif isinstance ( thing , datetime . datetime ) : return serialize_datetime ( thing ) elif isinstance ( thing , datetime . date ) : return serialize_date ( thing ) else : return thing