datetime.time won't help this, mainly because it's nigh meaningless to subtract times With this fashion. Use an entire datetime.datetime in order to try this.How come I would like to wash flash in between distinctive Android versions on tailor made ROMs although not on OEM updates?You can use to_timestamp operate to transform the dates to timestamp