Handle Year Half precision in launch date formatting

Closes: #172

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-02-03 11:54:35 +00:00
parent 905c9c330d
commit 828cb40dfa

View file

@ -67,6 +67,8 @@ def format_time(time_str: str, net_precision: str) -> tuple[str, str | None]:
include_time = True
case _ if net_precision and net_precision.startswith("Quarter "):
time_format = f"Q{net_precision[-1]} %Y"
case _ if net_precision and net_precision.startswith("Year Half "):
time_format = f"H{net_precision[-1]} %Y"
case _:
time_format = None