[python datetime处理时间](https://blog.csdn.net/pelifymeng2/article/details/78291921)
[datetime – Date/time value manipulation](https://pymotw.com/2/datetime/)
1)
```
print'Now :',datetime.datetime.now()
print'Today :',datetime.datetime.today()
print'UTC Now:',datetime.datetime.utcnow() 时区
```
2)
```
importdatetimetoday=datetime.date.today()
print'Today :',todayone_day=datetime.timedelta(days=1)
print'One day :',one_day
yesterday=today-one_day
print'Yesterday:',yesterday
tomorrow=today+one_day
print'Tomorrow :',tomorrow
print'tomorrow - yesterday:',tomorrow-yesterday
print'yesterday - tomorrow:',yesterday-tomorrow
```