abhilekhsingh / gc3pie

Automatically exported from code.google.com/p/gc3pie
0 stars 0 forks source link

`parsedatetime` is not parsing dates correctly #470

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Python package `parsedatetime`, upon which we depend for -e.g.- `gselect` is
not parsing dates correctly, as the following examples show::

    (Pdb) p Calendar().parse('2013-10-01')
    ((2014, 11, 13, 20, 13, 0, 3, 317, 0), 2)
    (Pdb) p Calendar().parse('oct. 1, 2013')
    ((2015, 10, 1, 20, 13, 0, 3, 317, 0), 3)
    (Pdb) p Calendar().parse('oct 1, 2013')
    ((2013, 10, 1, 7, 49, 22, 3, 317, 0), 1)

We should consider replacing it with one of the following:

* `dateutil`: 
http://labix.org/python-dateutil#head-a23e8ae0a661d77b89dfb3476f85b26f0b30349c
* `timestring`: https://github.com/stevepeak/timestring

Original issue reported on code.google.com by riccardo.murri@gmail.com on 24 Nov 2014 at 2:00

GoogleCodeExporter commented 9 years ago
Also `dateparser`: https://github.com/scrapinghub/dateparser

Original comment by riccardo.murri@gmail.com on 25 Nov 2014 at 4:42