I would like to get the difference between the start of a date with any other time in that date
For example
y = datetime.datetime(2012,1,1,1,1,1)
time_delta_in_seconds = (y.time()-datetime.time(0,0,0)).total_seconds()
However I got the following error
TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.time
Are there ways to accomplish my goal?