I recommend using pandas
for tasks like this, since it is much more intuitive to use than using the datetime
module directly.
import pandas as pd
startTime = '10:15'
duration = '90'
finishTime = (pd.to_datetime(startTime , format='%H:%M')
+ pd.to_timedelta(duration + 'min')).strftime(format='%H:%M')
As pointed out by Torxed and shmee, pandas is not a built-in module and it is fairly large with around 70MB, thus it may not be suitable for everyone.
But since pandas is imho the best tool to process time series data and since the question looked like something which is commonly needed when processing time series, I thought a solution with pandas might be interesting/of use.