What version of R are you using. Here is the results with 2.14.1 under Windows:
> x <- as.POSIXlt("2009-03-29 06:30:00") > > x [1] "2009-03-29 06:30:00" > class(x) [1] "POSIXlt" "POSIXt" > is.na(x) [1] FALSE > On Fri, Feb 24, 2012 at 12:57 PM, ikuzar <raz...@hotmail.fr> wrote: > Hi, > Does anybody know why get I this kind of strange situation: > > Browse[2]> hcEnd > [1] "2009-03-29 06:30:00" > Browse[2]> class(hcEnd) > [1] "POSIXlt" "POSIXt" > Browse[2]> is.na(hcEnd) > [1] TRUE > > This issue is the source of my all issues in my program, > > Thanks for your help > > -- > View this message in context: > http://r.789695.n4.nabble.com/strange-behaviour-of-POSIXlt-POSIXt-object-tp4418115p4418115.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. [[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.