I just ran into a situation whereby I need to use a timedelta
. I have only used timedelta
once before, and I am using that piece of code as a reference point.
timedelta(**{unit_of_measurement:quantity_of_units})
I am simply curious what the **{var1:var2}
part of the code is called?
I am new to Python, so I am not sure if it is exclusive to timedeltas
, datetime
, or Python in general. There is no mention of it in the datetime
documentation. I have tried searching Google, but it returns completely irrelevant results.