Python heute - 1 Tag

from datetime import datetime, timedelta

yesterday = datetime.today() - timedelta(days = 1 )
MzanziLegend