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

[* DateTimeV2] Added support for patterns like "week one" (#2964) #2978

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aitelint
Copy link
Contributor

@aitelint aitelint commented Jun 8, 2022

Fix to issue #2964.

Added support for "week one" in EN and NL.
Added support for "first week" in EN (where, if the year is missing, the start/end dates are calculated from the reference date).

Test cases added to EN and NL DateTimeModels.

Copy link
Collaborator

@tellarin tellarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support for week + written number seems OK.
But why add suppoer for ordinal + week w/o context in this way in English? Such cases without context need a different timex.

@aitelint
Copy link
Contributor Author

But why add suppoer for ordinal + week w/o context in this way in English? Such cases without context need a different timex.

I left a comment in PR 2963 when we were talking about this pattern, but since there was no answer I followed this approach.

What timex should they have?

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.

None yet

2 participants