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

New format #21

Closed
eddelbuettel opened this issue Oct 22, 2016 · 0 comments
Closed

New format #21

eddelbuettel opened this issue Oct 22, 2016 · 0 comments

Comments

@eddelbuettel
Copy link
Owner

eddelbuettel commented Oct 22, 2016

R> anytime:::testFormat("%a %d %b %Y %H:%M:%S %q", "Sat, 22 Oct 2016 09:06:43 -0400")
[1] "2016-10-22 09:06:43 CDT"
R>

The string Sat, 22 Oct 2016 09:06:43 -0400 is a common email header time format. If I recall correctly this is the RFC822 format (with the 2-digits year expanded to 4-digits). Would be good to have it.

Timezone offset is not parsed for input though per the Boost Date_time documentation.

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

1 participant