cata_log_hub.utils.dates module
- cata_log_hub.utils.dates.get_calendar_week_number(dt, week_startpoint=WeekCountingStartpoints.MONDAY)[source]
Get the calendar week number of a datetime.
- Parameters:
dt (
datetime) – The datetime.week_startpoint (
WeekCountingStartpoints) – The day a week starts with.
- Return type:
- Returns:
The week number starting with 1.