MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / parse_date_token

Function parse_date_token

tools/docs_and_notebooks_check.py:1036–1040  ·  view source on GitHub ↗
(token: str)

Source from the content-addressed store, hash-verified

1034
1035
1036def parse_date_token(token: str) -> date:
1037 token = token.strip().lower()
1038 if token in {"today", "now"}:
1039 return _iso_today()
1040 return date.fromisoformat(token)
1041
1042
1043def collect_scan_issues(records: list[FileRecord], target: Literal["errors", "warnings"]) -> list[str]:

Callers 1

mainFunction · 0.85

Calls 1

_iso_todayFunction · 0.85

Tested by

no test coverage detected