I want to know what is the start of the week, but it should be according to a specific time zone or locale.
I can retrieve the datetime of the start of the day like this
now = datetime.now()
weekday = now.weekday() # 0 if it is Monday
start_of_week = now.replace(day=now.day-weekday)
But if I am in a country where the start of the week is Sunday (for example timezone 'Asia/Tel_Aviv') this won't work.
Is there a way to get the start of the week according to timezone or locale with pytz or any other library?