7 lines
139 B
Python
7 lines
139 B
Python
from ago import human
|
|
from datetime import datetime
|
|
|
|
|
|
def ago(dt: datetime) -> str:
|
|
return human(dt, past_tense='{}', abbreviate=True)
|