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

Token not recognized (DDDD) #196

Closed
jlmenut opened this issue Feb 12, 2015 · 1 comment · Fixed by #655
Closed

Token not recognized (DDDD) #196

jlmenut opened this issue Feb 12, 2015 · 1 comment · Fixed by #655
Labels

Comments

@jlmenut
Copy link

jlmenut commented Feb 12, 2015

Hello,
I try to parse a date looking like 2013-033 where 033 is the day of year. The documention says the token is 'DDDD' but if I try

arrow.get('2013-055', 'YYYY-DDDD')

I get

ParserError: Unrecognized token 'DDDD'

For info:

In [154]: arrow.__version__
Out[154]: '0.5.0'

(also it could be nice if 2013-33 would work also, and with some random characters as delimiters for example 2013T213Z)

thank you

PS: I'm using arraw.Arrow.strptime for the moment.

@mlew
Copy link

mlew commented Aug 9, 2015

What should happen if someone tries the following:

arrow.get('2013-01-055', 'YYYY-MM-DDDD')

It seems reasonable to raise a ValueError in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants