SIGN IN SIGN UP
Textualize / rich UNCLAIMED

Rich is a Python library for rich text and beautiful formatting in the terminal.

0 0 182 Python

Allow timestamps to include milliseconds

Allow log_time_format to be string or callable e.g:

def time_formatter(timestamp: datetime) -> str:
    milliseconds = int(timestamp.microsecond / 1000.0 + 0.5)
    return f'{timestamp.strftime("%H:%M:%S")}.{milliseconds:03}'
F
Finn Hughes committed
d52c2a8fc798503c6f1557939363000c82ca8dcb
Parent: ed5834e