import datetime date = datetime.datetime.now() # Access your date attributes print date.day print date.month print date.year >>> # Print a formatted date string >>> print date.strftime("%m/%d") >>> '05/10' # Test if between 6am and 8pm if 6 < date.hour < 20: print "It is election time"
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.