Functions
add_time_to_date(date, date_format, time_str)
Description
Adds a specified amount of time to a given date.
Input
date
(str or datetime): The date to which the time will be added. Can be a string or a datetime object.date_format
(str): The format of the date string if the date is provided as a string.time_str
(str): The time to add, specified as a string (e.g., ‘1w 2d 3h 30m’).
Output
A datetime
object representing the new date with the added time.