Re: [R] strptime - %p format doesn't seem to be working

2006-11-29 Thread Prof Brian Ripley
On Thu, 30 Nov 2006, Edward Abraham wrote: > Hi there, > > Am I missing something? The "%p" format, which should match against > AM/PM, seems to be broken in R 2.3.1 running on Windows XP SP2. For > example, the following fails > > > strptime("10AM", "%I%p") > [1] NA > > > whereas the this works

[R] strptime - %p format doesn't seem to be working

2006-11-29 Thread Edward Abraham
Hi there, Am I missing something? The "%p" format, which should match against AM/PM, seems to be broken in R 2.3.1 running on Windows XP SP2. For example, the following fails > strptime("10AM", "%I%p") [1] NA whereas the this works as you would expect, but is ambiguous > strptime("10", "%I