I have a sensor that sends a data along with timestamp as a string which is parsed by a python script. The timestamp is then stored in it's own variable that is already formatted in hh:mm:ss like this for example: 23:52:50
What I want to do is create a full datetime object from the incoming timestamp values but so far I've been unable to figure out how.
From what I've seen so far is it a case of splitting the timestamp and storing the incoming timestamps in 3 different variables for hours, minutes and seconds then creating a time object like this: t = time(23, 52, 50)
Afterwards then use datetime.combine to add the date?
Is there a way to achieve this without having to reformat the incoming timestamps and keeping them as they are and just adding on today's date?