mirror of https://gitlab.com/bashrc2/epicyon
datetime
parent
bdc2533691
commit
248151141f
|
@ -2748,7 +2748,7 @@ 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(year, monthNumber, 1, 0, 0)
|
firstDayOfMonth=datetime.datetime(year, monthNumber, 1, 0, 0)
|
||||||
return int(firstDayOfMonth.strftime("%w"))+1
|
return int(firstDayOfMonth.strftime("%w"))+1
|
||||||
|
|
||||||
def htmlCalendar(translate: {}, \
|
def htmlCalendar(translate: {}, \
|
||||||
|
|
Loading…
Reference in New Issue