main2
Bob Mottram 2019-10-10 19:55:31 +01:00
parent 248151141f
commit 4aa832fc02
1 changed files with 2 additions and 1 deletions

View File

@ -2748,7 +2748,8 @@ def weekDayOfMonthStart(monthNumber: int,year: int) -> int:
"""Gets the day number of the first day of the month """Gets the day number of the first day of the month
1=sun, 7=sat 1=sun, 7=sat
""" """
firstDayOfMonth=datetime.datetime(year, monthNumber, 1, 0, 0) firstDayOfMonth=datetime(year, monthNumber, 1, 0, 0)
print('weekDayOfMonthStart: '+str(int(firstDayOfMonth.strftime("%w"))+1))
return int(firstDayOfMonth.strftime("%w"))+1 return int(firstDayOfMonth.strftime("%w"))+1
def htmlCalendar(translate: {}, \ def htmlCalendar(translate: {}, \