I can format date with strftime in python, but now I want to show date in format relative to current time.
i.e. if date is near today, show in time.
if it is within week, show as yesterday etc.
if it is within month just show as last week or month.
if it is older than that show as actual value.
I can do it with lots of ifs but is there any simpler way to do this? or library?