I have a numpy array which is built of decimal hours like so:
13.1 13.2 13.3 13.4
14.1 14.2 14.3 14.4
15.1 15.2 15.3 15.4
What I wish to do is convert this array to a time string and then replace all the values in this array with a custom string formatting. I calculate the times like so:
hours = int(time)
minutes = int((time*60) % 60)
seconds = int((time*3600) % 60)
From there the conversion will be done like so to get a time string:
ftime = "{}:{}:{}".format(str(hours), str(minutes), str(seconds))
And lastly I wish to use this formatting rule and replace all the values in the array with it so I get a result like so:
13:06:00 13:12:00 13:18:00 13:24:00
14:06:00 14:12:00 14:18:00 14:24:00
15:06:00 15:12:00 15:18:00 15:24:00
What is the best way to go about this?