{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / jsonutil / parse_date

function

jupyter_client.jsonutil:parse_date

source: /jupyter_client/jsonutil.py:55

Signature

def parse_date(s: str | None) → Union[str, datetime] | None

Summary

parse an ISO8601 date string

Extended Summary

If it is None or not a valid ISO8601 timestamp, it will be returned unmodified. Otherwise, it will return a datetime object.

Aliases

  • jupyter_client.jsonutil.parse_date