<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cumulative_gaps_to(self, when: datetime.datetime) -> datetime.timedelta: """ Return the cumulative time within our gaps, up to ``when``. """

        gaps = self.gaps()
        return gaps.cumulative_time_to(when)