So I have a list of data (let's say of yesterday's date) with dateless timestamps that go from 23:45 all the way to 00:00 inclusive, meaning that the 00:00 data is also included, but obviously those ones are of a different date. The file where this data is contained doesn't store any date information on anywhere but the filename itself, and I need to be able to output these timestamps along with their correct dates.
so e.g. if I have
23:58
23:59
00:00
then I should be able to output
14/09/2020 23:58
14/09/2020 23:59
15/09/2020 00:00
How would I go about checking if the date has advanced just from the clock time with only yesterday's date at hand?
I should note that this list isn't perfectly sorted, so I will still occasionally find 23:59 stamps inbetween the 00:00 ones, for example.
This is my first question on SO, and I've not been able to find existing answers to this, so I hope this is ok to ask.