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

Support parsing iso8601 dates #15

Open
emaste opened this issue Apr 4, 2013 · 4 comments
Open

Support parsing iso8601 dates #15

emaste opened this issue Apr 4, 2013 · 4 comments

Comments

@emaste
Copy link

emaste commented Apr 4, 2013

YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD formats

>>> import parsedatetime as pdt
>>> cal = pdt.Calendar()
>>> cal.parse('1999-12-24')
(time.struct_time(tm_year=2013, tm_mon=4, tm_mday=4, tm_hour=14, tm_min=2, tm_sec=49, tm_wday=3, tm_yday=94, tm_isdst=1), 0)
@idpaterson
Copy link
Collaborator

YYYY-MM-DD is now supported in the latest commit in the master branch, but I was not able to figure out the best way to handle the time and time zone component. The date-only format is handled in a locale-agnostic way since this is meant to be an international date format.

@flight16
Copy link

Possibly a related bug? #133

@AgDude
Copy link

AgDude commented Jan 14, 2016

I would like this also. Based on the discussion in #97, parsedatetime is not timezone aware, so it can't fully support ISO 8601.

@ManojDatt
Copy link

Is there any way to specify the date format that parser should only understand, Like it should consider only DD/MM/YYYY
but not MM/DD/YYYY ?

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

No branches or pull requests

5 participants