Created
April 25, 2023 12:37
-
-
Save A-Asror/b99fdfbed3569ea744cc022b9592903e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_24hour_to_12hour(time: dt.time) -> str: | |
# 23:52:00 to 11:52:00 | |
return time.strftime("%I%P") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment