

def _datetime_to_date(arg):
    '\n    convert datetime/str to date\n    :param arg:\n    :return:\n    '
    _arg = parse(arg)
    if isinstance(_arg, datetime.datetime):
        _arg = _arg.date()
    return _arg

dataset/ETHPy150Open shinux/PyTime/pytime/pytime.py _datetime_to_date/original