parse-human-relative-time
parse-human-relative-time copied to clipboard
Parse human relative time strings like "next Tuesday 3pm".
fixes https://github.com/derhuerst/parse-human-relative-time/issues/4
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.
How can we parse "last week" with this library best? I mean, point to beginning of last week best. Pick "last Monday" instead?
Some countries might start the week on another day, which can be configured in date-fns `weekStartsOn` parameter. Unfortunately, this cannot be passed over here due to fixed lexing: https://github.com/derhuerst/parse-human-relative-time/blob/1fd21930e4568588233f33746984a152ba9bc6ab/date-fns.js#L18 Can...