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

7 lines
147 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()]