Compute all date bookmarks needed for one ENTSO-E submission run.
Encapsulates the compute_dates logic shared identically across chronos.py, team4_optuna_submit.py, team4_spotoptim_submit.py, and team4_4zones_submit.py. The download window (start_dl, end_dl) is derived by delegating to derive_download_window with the same arguments, guaranteeing that the ENTSO-E pull window is identical for all callers that pass the same train_years / start_margin_days / data_end.
Reference wall-clock timestamp (tz-aware, typically pd.Timestamp.now(tz="UTC")). Must be a pd.Timestamp with timezone; coercion is refused to prevent clock-skew bugs.
Optional upper bound for the download window in 'YYYYMMDDHHMM' format. None (default) sets the end to today + 2 days. Forwarded to derive_download_window.