(start_time, end_time, lookback_cutoff, cutoff_date)
| 31 | |
| 32 | |
| 33 | def _programme_overlaps_export_window(start_time, end_time, lookback_cutoff, cutoff_date): |
| 34 | if end_time < lookback_cutoff: |
| 35 | return False |
| 36 | if cutoff_date is not None and start_time >= cutoff_date: |
| 37 | return False |
| 38 | return True |
| 39 | |
| 40 | |
| 41 | def _ceil_to_half_hour(dt): |