

def truncate_date(self, date_part, date_field):
    return fn.strftime(SQLITE_DATE_TRUNC_MAPPING[date_part], date_field)

dataset/ETHPy150Open coleifer/peewee/peewee.py SqliteDatabase.truncate_date/original