Closed sebastianmika closed 2 years ago
There seems to be a rule missing that can merge a month and a year:
Example: list(ctparse_gen('June 2020')) Expected: 2020-06-X X:X (X/X) Actual:
list(ctparse_gen('June 2020'))
2020-06-X X:X (X/X)
X-06-X X:X (X/X) s=-5.902 p=(103, 111, 'ruleYear', 'ruleNamedMonth') 2020-X-X X:X (X/X) s=-5.902 p=(103, 111, 'ruleYear', 'ruleNamedMonth')
and some more, but nothing that combines the month and the year into a single resolution.
What seems to be missing is a rule like
@rule(predicate('isMonth'), predicate('isYear')) def ruleMonthYear(ts, m, y): return Time(year=y.year, month=m.month)
Description
There seems to be a rule missing that can merge a month and a year:
Example:
list(ctparse_gen('June 2020'))
Expected:2020-06-X X:X (X/X)
Actual:and some more, but nothing that combines the month and the year into a single resolution.
What seems to be missing is a rule like