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

as_datetime not ISO 8601 compliant #536

Closed
ragulpr opened this issue Apr 20, 2017 · 1 comment
Closed

as_datetime not ISO 8601 compliant #536

ragulpr opened this issue Apr 20, 2017 · 1 comment

Comments

@ragulpr
Copy link

ragulpr commented Apr 20, 2017

> as_datetime("2017-03-22T15:48:00.000Z")
[1] "2017-03-21 23:00:00 UTC"

> packageDescription("lubridate")$Version 
[1] "1.6.0"

I know that ymd_hms deals with it graciously as of #158 but am I lazy or correct in expecting as_datetime to infer ISO-8601?

Originally discussed on stack overflow

@vspinu
Copy link
Member

vspinu commented Apr 21, 2017

as_datetime is a light wrapper around as.POSIXct so it will have same issue. I will add a specialized method for characters that would rely on internal parser. Thanks for bringing this up.

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

2 participants