I didn't phrase this question correctly and as a result, none of the answers quite hit the mark.
What I wanted to know is, what's the best way to get time
to return the end of a day in epoch milliseconds, if given just the date, rather than both date and time?
Here's how I'm doing it at the moment:
def get_epoch_endofday(day):
return time.mktime(time.strptime('005923'+day,"%S%M%H%d%m%y"))*1000
The function takes the date in the form ddmmyy, and then spits out the epoch milliseconds on that day at 23:59:00.
I wondered, is there a more elegant way of doing this?