[R] Problems with strptime

From: Vittorio <vdemart1_at_tin.it>
Date: Mon, 09 Jun 2008 16:17:06 +0100 (GMT+01:00)


Perhaps I'm missing a real, stupid point but I can't understand the following behaviour:

> strptime("30 march 2008 02:30 AM",format="%d %B
%Y %I:%M %p")
[1] "2008-03-30 02:30:00"
> strptime("30 march 2008 00:30

AM",format="%d %B %Y %I:%M %p")
[1] NA

Why times 00:nn are not
available and how solve this?

Ciao
Vittorio



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 09 Jun 2008 - 16:07:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 09 Jun 2008 - 16:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive