Skip to content
Prev 107623 / 398498 Next

problem with unlist POSIX date at midnight

[Unstated, but a near repeat of a posting earlier today with the same 
subject, in response to unacknowledged help.]

The problem is not with unlist (as in your subject line) but your input to
strptime.

strptime() is intended to convert character strings, and
[1] "2006-03-01"

is not in the format you specified.  Why are you using strptime() to 
convert objects of class POSIXct to class POSIXlt and not as.POSIXlt()?
On Wed, 17 Jan 2007, Hanneke Schuurmans wrote: