I am trying to put time into a cell. I need it to be independent without the year, month, day data datetime appends.
When I try writing a string 15:55:00 with format h:mm AM/PM it shows up as 15:55:00 on the excel sheet until I select the cell and press enter, so it seems that this isn't a valid way to do it.
Passing datetime works but again, I do not want to have date information in my cell, just properly formatted time.
My current code is as follows:
style = XFStyle()
style.num_format_str = 'h:mm:ss AM/PM'
time = "15:22:00"
ws.write(i, 4, time, style)