def timedelta_to_matsim_time(td):
    """
    Convert datetime timedelta object to matsim string format (00:00:00)
    """
    hours, remainder = divmod(td.total_seconds(), 3600)
    minutes, seconds = divmod(remainder, 60)
    return f"{int(hours):02}:{int(minutes):02}:{int(seconds):02}"