import datetime def NoDays(d1): c1 = datetime.datetime.strptime (d1.split () [0], "%Y/%m/%d") current = datetime.datetime.today() c2 = datetime.datetime.strptime (str(current).split () [0], "%Y-%m-%d") n = (c1 - c2).days return n
def NoDays(d1): c1 = datetime.datetime.strptime(d1.split()[0], "%Y-%m-%d").date() c2 = datetime.datetime.now().date() return (c1-c2).days
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.