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
from num2words import num2words | |
def timeAsString(time): | |
time = time.split(sep=":") | |
if int(time[0]) < 12: | |
timeofday = "AM" | |
else: | |
timeofday = "PM" | |
time[0] = int(time[0]) - 12 | |
hour = int(time[0]) |