MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _format_date

Method _format_date

scripts/fetch_updates.py:1569–1573  ·  view source on GitHub ↗

Convert YYYYMMDD to YYYY-MM-DD.

(date_str: str)

Source from the content-addressed store, hash-verified

1567
1568 @staticmethod
1569 def _format_date(date_str: str) -> str:
1570 """Convert YYYYMMDD to YYYY-MM-DD."""
1571 if len(date_str) == 8 and date_str.isdigit():
1572 return f"{date_str[:4]}-{date_str[4:6]}-{date_str[6:8]}"
1573 return date_str
1574
1575
1576# ---------------------------------------------------------------------------

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected