Y
Hacker News
new
|
ask
|
show
|
jobs
by
larkeith
2112 days ago
`datetime.fromisoformat()`, as of 3.7 :D
Though `dateutil` is still recommended for most cases.
1 comments
wwright
2112 days ago
That parses a subset and is only guaranteed to be compatible with Python’s “.toisoformat()”. (I imagine it would be backwards compatible to expand it to cover all of ISO8601 and I can’t tell why they haven’t.)
link
londt8
2112 days ago
ISO8601 is quite large, they probably don't want to ship that big standard library modules which would parse 100% of ISO8601
link