I'm converting a parameter of seconds in the current time in the format hh:mm:ss, but I need to convert in the format hh:mm:ss.ms but I'm not getting it.I'm using the strftime
function and I can convert to hh:mm:ss format.
f_datetime = '%H:%M:%S.%f'
time_cap = time.strftime(f_datetime, time.localtime(pkt_time_cap.tv_sec))
print(time_cap)
Result: 06:08:04.%f
Ps1: pkt_time_cap.tv_sec is my param for seconds
Can you help me ?