I'm trying to improve the performance of some code, and I've found that a lot of the inefficiencies I have are caused by a large number of DateTime object creations. I would like to update the code to create the object only once, and update it with different epoch times, instead of creating a new object ->from_epoch each time. Is this possible? To set the epoch time of an existing object?
Thanks in advance, Lenny