Re: [R] issue with strptime

2011-06-17 Thread William Dunlap
%I:%M %p") > f(s, fmts) [1] "2009-04-08 13:49:47" "2009-04-08 13:49:00" "2011-06-17 02:01:03" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-proje

[R] issue with strptime

2011-06-17 Thread cassie jones
Hi everyone, I have bunch of date and time observations in the format %Y-%m-%d %I %M %S %p. I used strptime() to read this format. But the problem is some of the times are in the format of %I %M %p, so for those times, strptime is giving me NA values. For example, strptime(paste("2009-04-08","1