new function: timedelta_to_str, rename interval_to_seconds to timedelta_to_seconds