How to round time in format %HH:%MM:%SS.%f to %HH:%MM:%SS ?
e.g: 23:45:21.630 to 23:45:22
23:45:21.630
23:45:22
simple remove %f
%f
dt.strftime('%H:%M:%S')
use strftime() formatting function. For example:
strftime()
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")