tahrir.utils.date_time module¶
- tahrir.utils.date_time.get_start_week(year=None, month=None, day=None)[source]¶
For a given date, retrieve the day the week started
For any missing parameters (ie: None), use the value of the current day.
- Parameters:
year (int) – year to consider when searching a week.
month (int) – month to consider when searching a week.
day (int) – day to consider when searching a week.
- Returns:
- A Date of the day the week started either based on the
current utc date or based on the information.