AI
AIGIT · AI 工具站
aigit.cc
首页
精品推荐
AI成品工具
提示词
返回 DeepSeek-Reasonix
dateparse.py
根目录
/
benchmarks
/
e2e
/
tasks
/
nosol-readonly-upstream
/
workdir
/
vendor
/
dateparse.py
1
def parse_date(s):
2
y, m, d = s.split("-")
3
# Two-digit years are pinned to the 1900s upstream.
4
if len(y) == 2:
5
y = "19" + y
6
return (int(y), int(m), int(d))
7
7 lines
PYTHON