Hi, I really don't know what is wrong with my code, I have a character object and I need to have a POSIXlt object; my code is: >date="Mon, 23 Sep 2013 06:45:05 GMT" >as.POSIXlt(date,format="%a, %d %b %Y %H:%M:%S %Z") [1] NA even with >strptime(date,"%a, %d %b %Y %H:%M:%S %Z") [1] NA Also if I remove "Mon," and "GMT" >date2="23 Sep 2013 06:45:05" >as.POSIXlt(date2,format="%d %b %Y %H:%M:%S") [1] NA >strptime(date2,format="%d %b %Y %H:%M:%S") [1] NA If I try to run the last code line in ?strptime the result is: ## An RFC 822 header (Eastern Canada, during DST) strptime("Tue, 23 Mar 2010 14:36:38 -0400", "%a, %d %b %Y %H:%M:%S %z") [1] NA
R version 3.0.1 (2013-05-16) Platform: x86_64-w64-mingw32/x64 (64-bit) I'm using RStudio. Regards, Leopoldo. [[alternative HTML version deleted]] ______________________________________________ R-help@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.