parse-human-relative-time
parse-human-relative-time copied to clipboard
parse "last month"
Similar to "last week" (the other ticket), how can we parse "last month" best?
To point at the beginning and end of last month somehow.
We'll have to extend the grammar, the Luxon implementation and the date-fns implementation.
@derhuerst looks like there is already support for last month but it seems broken, always resulting into an invalid date upon the last step setMonth:
https://github.com/derhuerst/parse-human-relative-time/blob/master/grammar.js#L269