def METHOD_NAME(self, initial_time: cftime.DatetimeJulian) -> TimeContainer:
    if self.kind == "interval" and self.frequency:
        return TimeContainer(IntervalTimes(self.frequency, initial_time))
    elif self.kind == "every":
        return TimeContainer(All())
    elif self.kind == "interval-average" and self.frequency:
        return IntervalAveragedTimes(
            datetime.timedelta(seconds=self.frequency), initial_time, False,
        )
    else:
        raise NotImplementedError(f"Time {self.kind} not implemented.")