>>> line = '2008-10-27 12:05:54...........
>>> time = line.split(' ')[1].split('.')[0]
>>> print time
12:05:54
i would like to add 45 or so minutes to the time i am parsing from a line
i have tried
print time.timedelta(minutes=45)
Traceback (most recent call last):
File "<pyshell#44>", line 1, in <module>
print time.timedelta(minutes=45)
AttributeError: 'str' object has no attribute 'timedelta'
i have imported all the needed modules. where am i wrong