2022-11-13 10:39:28 -08:00

11 lines
247 B
Python

import calendar
def dayname(time):
"""Return the name of the day of the week for the given time."""
return calendar.day_name[time.weekday()]
def greeting(time):
"""Return a friendly greeting based on the current time."""
return FILL_IN