

def _sqlite_date_trunc(lookup_type, datetime_string):
    assert (lookup_type in SQLITE_DATE_TRUNC_MAPPING)
    if (not datetime_string):
        return
    dt = format_date_time(datetime_string, SQLITE_DATETIME_FORMATS)
    return datetime_string.strftime(SQLITE_DATE_TRUNC_MAPPING[lookup_type])

dataset/ETHPy150Open coleifer/peewee/peewee.py _sqlite_date_trunc/VarMisuse@40/71 `dt`->`datetime_string`