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"
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.