import sys sys.maxint
import time time.time()
import time import datetime midnight = datetime.datetime.combine(datetime.date.today(), datetime.time.min) midnightSec=time.mktime(midnight.timetuple()) #midnight this morning lastMidnightSec-=86400 #midnight yesterday morning (there are 86400 seconds in a day)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.