Are there anyway of making a timefunction which returns time and not years? For example:
enter code here
def time(t):
return datetime.datetime.strptime(t, "%H:%M")
print(time('6:00'))
If I write this I will get: 1900-01-01 06:00:00, but I only want 06:00