Answer the question
In order to leave comments, you need to log in
What are the libraries for working with time and date?
I'm doing a project on Django, and each comment in the project should have a creation date, but it should be displayed in the form "2 days ago", "one month ago", "recently". I heard that there are libraries for this, which also take into account the time zone, etc. I need to find such a library so as not to develop this from scratch. Thanks in advance
Answer the question
In order to leave comments, you need to log in
Well , the first thing I found . Here is this piece specifically by date.
Natural is a Python library to easily transform data into human-readable formats such as dates, time differences, numbers and sizes.
Features:
Natural is not using any third-party libraries, so it runs from a bare Python installation
Natural is fully internationalised and speaks your language
Natural uses unicode strings where possible
Natural is PEP8 compliant
Natural has an extensive test suite
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question