From what I gather, here (for example), this should print the current year in two digits
print (datetime.strftime("%y"))
However, I get this error
TypeError: descriptor 'strftime' requires a 'datetime.date' object but received a 'str'
So I tried to this
print (datetime.strftime(datetime.date()))
to get
TypeError: descriptor 'date' of 'datetime.datetime' object needs an argument
so I placed "%y"
inside of thr date()
above to get
TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'str'
Which start to seem really loopy and fishy to me.
What am I missing?