Textlib.py (https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/pywikibot%2Ftextlib.py) is used to parse wikitext and then output machine readable objects. It currently contains some functionality to parse time and date.
See https://www.wikidata.org/wiki/User:Underlying_lk/harvest_template_old.py for more expanded functionality.
Version: core-(2.0)
Severity: enhancement