You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1999-01-31 00:00:00 # Date should be Jan 1
1999-02-28 00:00:00 # Date should be Feb 19
9977-01-09 07:00:00 # Should likely raise an exception on invalid day of the year?
I'm using dateparser 0.5.1 with Python 2.7.6 on Ubuntu 14.04 64-bit.
I realize that %j is a rather obscure pattern but I'm submitting the ticket for completeness.
Sir @dsuch , Can you please refer the mentions of %j date format . Because i think this inconsistency is due to use of arbitrary date format . just check the Supported date Formats
under "_no_spaces_parser" class .
@waqasshabbir Should i add a raise exception here ?.
thanks .
Naturally, you will do what you think is best for this project. I just reported an issue because this is one of existing formats and the way it was handled was inconsistent.
I'm not one of developers in this project, I'm not sure how it's best to tackle the situation. I understand that @waqasshabbir is the lead so it would be prudent to wait for his opinion.
Activity
inishchith commentedon Mar 4, 2017
Sir @dsuch , Can you please refer the mentions of %j date format . Because i think this inconsistency is due to use of arbitrary date format . just check the Supported date Formats
under "_no_spaces_parser" class .
@waqasshabbir Should i add a raise exception here ?.
thanks .
dsuch commentedon Mar 4, 2017
Hello @inishchith,
%j is a format commonly used in mainframe computers, it's not an arbitrary one and is documented here:
https://docs.python.org/2/library/time.html#time.strftime
https://docs.python.org/3/library/time.html#time.strftime
Naturally, you will do what you think is best for this project. I just reported an issue because this is one of existing formats and the way it was handled was inconsistent.
inishchith commentedon Mar 4, 2017
Oh Got it @dsuch . How can i assign this work to myself ?
@waqasshabbir should i work on adding support to %Y%j formats under _no_spaces_parser ? .
dsuch commentedon Mar 4, 2017
Hi @inishchith,
I'm not one of developers in this project, I'm not sure how it's best to tackle the situation. I understand that @waqasshabbir is the lead so it would be prudent to wait for his opinion.
Kind regards.
Reject a %j day of year that the parsed year does not have (scrapingh…