(dateOrDateTime)
return dateToString(dateOrDateTime)
Wraps dateToString and dateTimeToString, returning the results
    of either based on the type of the argument
Wraps dateToString and dateTimeToString, returning the results
    of either based on the type of the argument
Wraps dateToString and dateTimeToString returning the results of either based on the type of the argument
def timeToString(dateOrDateTime):
    """
    Wraps dateToString and dateTimeToString, returning the results
    of either based on the type of the argument
    """
    if hasattr(dateOrDateTime, 'hour'):
        return dateTimeToString(dateOrDateTime)
    return dateToString(dateOrDateTime)
def timeToString ( dateOrDateTime ) : if hasattr ( dateOrDateTime , 'hour' ) : return dateTimeToString ( dateOrDateTime ) return dateToString ( dateOrDateTime )