chore: removed extra functiion
This commit is contained in:
parent
b41083561e
commit
ace2122e92
1 changed files with 0 additions and 34 deletions
|
|
@ -878,40 +878,6 @@ def get_weekday(datetime: DateTimeLikeObject | None = None) -> str:
|
|||
return weekdays[datetime.weekday()]
|
||||
|
||||
|
||||
def get_months() -> dict[int, str]:
|
||||
"""Return a list of weekday names.
|
||||
Return value:
|
||||
months_dict = {
|
||||
1: "January",
|
||||
2: "February",
|
||||
3: "March",
|
||||
4: "April",
|
||||
5: "May",
|
||||
6: "June",
|
||||
7: "July",
|
||||
8: "August",
|
||||
9: "September",
|
||||
10: "October",
|
||||
11: "November",
|
||||
12: "December",
|
||||
}
|
||||
"""
|
||||
return {
|
||||
1: "January",
|
||||
2: "February",
|
||||
3: "March",
|
||||
4: "April",
|
||||
5: "May",
|
||||
6: "June",
|
||||
7: "July",
|
||||
8: "August",
|
||||
9: "September",
|
||||
10: "October",
|
||||
11: "November",
|
||||
12: "December",
|
||||
}
|
||||
|
||||
|
||||
def get_month(datetime: DateTimeLikeObject | None = None) -> str:
|
||||
"""Return the month name (e.g. 'January') for the given datetime like object (datetime.date, datetime.datetime, string).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue