Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Custom yearquarter() character parser #107

Closed
mitchelloharawild opened this issue Apr 4, 2019 · 7 comments
Closed

Custom yearquarter() character parser #107

mitchelloharawild opened this issue Apr 4, 2019 · 7 comments
Assignees

Comments

@mitchelloharawild
Copy link
Member

As anytime cannot parse "2004 Q2" or "Q2 2004", can we add a simple parser for these formats? If the input format does not match this, it could fall back to anytime.

cc @robjhyndman

@mitchelloharawild
Copy link
Member Author

Here is a regular expression that can be used: \d{4} *Q\d|Q\d *\d{4}

@earowang
Copy link
Member

earowang commented Apr 4, 2019 via email

@mitchelloharawild
Copy link
Member Author

Sure.

@earowang
Copy link
Member

earowang commented Apr 4, 2019 via email

@earowang
Copy link
Member

earowang commented Apr 4, 2019 via email

@mitchelloharawild
Copy link
Member Author

What's your year threshold for parsing 2 digit years?

@earowang
Copy link
Member

earowang commented Apr 4, 2019 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants