is there already a dimagi util function that converts timedeltas to seconds? (this function doesn't handle td.days, for example, though... our performance isn't *that* bad)