What would be an elegant, efficient and Pythonic way to perform a h/m/s rounding operation on time related types in Python with control over the rounding resolution?
def round_dt_to_seconds(dt): datetime.timedelta(seconds=dt.seconds)