New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add p+ token support to parse function #1189
Conversation
@kossnocorp and @marnusw Can you take a look and check if this makes sense? This should close #896, or at least make it more consistent. Also, it should fix Hacker0x01/react-datepicker#1774. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a lovely addition, thank you! Please address my comments, and I think then it'll ready to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, thank you!
This PR was released as |
There's currently no way to parse date strings using long localized date/time formats. This PR aims to add support to
p+
tokens to theparse
function.Added patterns:
and their combinations.
PS: Timezone time parses
ppp
andpppp
were left out of this PR because thez+
parsers are not yet implemented in the locales.