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:
parent
905c9c330d
commit
828cb40dfa
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue