def subtract_time_from_date(date, time, result_format='timestamp', exclude_millis=False, date_format=None):
 date = (Date(date, date_format) - Time(time))
 return date.convert(result_format, millis=is_falsy(exclude_millis))

def subtract_time_from_date ( date , time , result_format = 'timestamp' , exclude_millis = False , date_format = None ) : date = ( Date ( date , date_format ) - Time ( time ) ) return date . convert ( result_format , millis = is_falsy ( exclude_millis ) )
subtracts time from date and returns the resulting date .