whym added a comment.

Not sure if we want to remove the timezone requirement from parsing. We want to discriminate timestamps from other mentions of date and time. An explicitly written timezone symbol is an indication that it's probably not a part of a normal sentence.

TimeStripper is (sometimes too much) flexible and accepts a few characters in between. E.g.

>>> ts.timestripper('We will meet at 1 Jan 2018 at 12:30 (UTC)')
Timestamp(2018, 1, 1, 12, 30, tzinfo=tzoneFixedOffset(0, UTC))

The parsing itself has been a bit heuristic (there are at lease some false positives), but if we drop the timezone requirement, I fear that false positives increase.


TASK DETAIL
https://phabricator.wikimedia.org/T170034

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: whym
Cc: Mpaa, Framawiki, Dvorapa, zhuyifei1999, Aklapper, whym, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to