matthewmueller / matthewmueller/date
Support for non-relative date-time strings
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
It would be useful if this library could also parse non-relative strings. I was rather perplexed to find:
> d("September 11, 2014");
> Fri Sep 12 2014 11:45:01 GMT+1000 (EST)
I know the plain old Date constructor will handle that, but it'd be nice not to have to worry about whether a date is relative or not and still have the other natural-language advantages this library has.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests, so first inspect the library's date-parsing entry point and existing relative-date tests. Reproduce d("September 11, 2014") and trace the current handling; done means non-relative date-time strings parse while retaining the library's natural-language behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100