<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rollover (self):
 """Indicates whether or not its time to rollover to a new file."""

        rollover = False

        if not rollover and self._threshold.nbytes is not None:
            rollover = self._total.nbytes >= self._threshold.nbytes

        if not rollover and self._threshold.npackets is not None:
            rollover = self._total.npackets >= self._threshold.npackets

        if not rollover and self._threshold.nseconds is not None:
            nseconds = math.ceil(self._total.nseconds)
            rollover = nseconds >= self._threshold.nseconds

        return rollover