python datetime.now central standard code example
Example 1: datetime python timezone
import datetime
import pytz
my_date = datetime.datetime.now(pytz.timezone('US/Pacific'))
Example 2: datetime decreasing date python
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=days_to_subtract)