获取本地时区当天的0时
In [1]: import time
In [2]: from datetime import datetime
In [3]: time.mktime(datetime.now().date().timetuple())
Out[3]: 1532188800.0
In [1]: import time
In [2]: from datetime import datetime
In [3]: time.mktime(datetime.now().date().timetuple())
Out[3]: 1532188800.0