New format #21

eddelbuettel opened this Issue Oct 22, 2016 · 0 comments


None yet

1 participant

eddelbuettel commented Oct 22, 2016 edited
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"

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