Skip to content
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

Feat: add AdvancedParse plugin for parsing strings with a custom format #47

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

BePo65
Copy link
Contributor

@BePo65 BePo65 commented Feb 26, 2025

Add the AdvancedParse plugin for parsing strings with a custom format.

Add a short documentation for this plugin and a rudimentary index page for all documentation pages.

Works also with the utc plugin.

Changed the core parsing implementation and the utc plugin to remove the tight coupling between these modules. Added an 'official' method (dateFromDateComponents) to the core module that creates a javascript Date object from the date components. This method is overloaded in the utc plugin to handle utc dates.

In the LocalizedParse plugin (work in progress) this plugin will get a method to extend the used parsing tokens (e.g. required by the timeZone plugin).

Format as array of strings and strict mode not yet implemented
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant