Python fraction of seconds
In the datetime module, the datetime, time, and timedelta classes all have the smallest resolution of microseconds: >>> from datetime import datetime, timedelta >>> now = datetime.now() >>> now datetime.datetime(2009, 12, 4, 23, 3, 27, 343000) >>> now.microsecond 343000 if you want to display a datetime with fractional seconds, just insert a decimal point and … Read more