Is there a Python module to parse a date like the 'date' command in Linux?

Alex Pinkney apinkney97 at gmail.com
Tue May 23 12:53:24 EDT 2023


On Tue, 23 May 2023, 17:25 Chris Green, <cl at isbd.net> wrote:

> Mike Dewhirst <miked at dewhirst.com.au> wrote:
> > [-- multipart/mixed, encoding 7bit, 22 lines --]
> >
> >     [-- text/plain, encoding base64, charset: UTF-8, 16 lines --]
> >
> > On 21/05/2023 5:53 am, Chris Green wrote:
> > > I'm converting a bash script to python as it has become rather clumsy
> > > in bash.
> >
> > What is the use case?
> >
> A script I use to create diary entries, so it's very handy to be able
> to give the date as 'yesterday' or 'friday'.
>
> --
> Chris Green
> ·
> --
> https://mail.python.org/mailman/listinfo/python-list



Hi, you may find dateparser useful:
https://dateparser.readthedocs.io/en/latest/


More information about the Python-list mailing list