mdrs-client-python/mdrsclient/models/utils.py

6 lines
145 B
Python
Raw Permalink Normal View History

2023-05-01 20:00:32 +09:00
import datetime
def iso8601_to_user_friendly(text: str) -> str:
return datetime.datetime.fromisoformat(text).strftime("%Y/%m/%d %H:%M:%S")