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

[gnc-datetime] add boost UK/US/ISO date parsers #2015

Closed
wants to merge 1 commit into from

Conversation

christopherlam
Copy link
Contributor

@christopherlam christopherlam commented Sep 8, 2024

From #1710 (comment)

UK: "30 Sep 2024" and "30 September 2024" are accepted. "30 Sept 2024" is rejected.
US: "May 2, 2024" is accepted.
ISO delimited: "2024 Dec 20" and "2024 December 20" are accepted.

Note boost's parser requires 4-digit years.

Thus "30 Sep 2024" and "30 September 2024" are accepted.
But ICU's "30 Sept 2024" is rightfully rejected.
@gjanssens
Copy link
Member

From #1710 (comment)

UK: "30 Sep 2024" and "30 September 2024" are accepted. "30 Sept 2024" is rejected. US: "May 2, 2024" is accepted. ISO delimited: "2024 Dec 20" and "2024 December 20" are accepted.

Note boost's parser requires 4-digit years.

As @jralls already remarked on #1710 , the issue remains that this solution is very limited. It solves your case, but will not add anything for non-English speaking regions. If we merge this I expect users to request similar options for other regions, which we can't offer via boost.

@christopherlam
Copy link
Contributor Author

Closed in favour of #2011

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.

2 participants