Message-ID: <1351632092200-4647939.post@n4.nabble.com>
Date: 2012-10-30T21:21:32Z
From: chuck.01
Subject: POSIXct date missing "time component"
In-Reply-To: <1351631793869-4647938.post@n4.nabble.com>
Um, OK.
My dates have times, they are 00:00:00 (i.e. midnight)
I'll just add a fraction of a second my dates and go with it.
Thanks for the reply.
arun kirshna wrote
> HI,
> Please check this link
> (http://rss.acs.unt.edu/Rdoc/library/base/html/as.POSIXlt.html).
> "Dates without times are treated as being at midnight UTC. "
>
> May be you can try this (if it doesn't create additional problems):
> dates.mine2<-dates.mine+1
> dates.mine2
> #[1] "2009-05-21 23:30:01 GMT" "2009-05-21 23:45:01 GMT"
> #[3] "2009-05-22 00:00:01 GMT" "2009-05-22 00:15:01 GMT"
> dates.mine2[3]
> #[1] "2009-05-22 00:00:01 GMT"
> str(dates.mine2)
> #POSIXct[1:4], format: "2009-05-21 23:30:01" "2009-05-21 23:45:01" ...
> A.K.
--
View this message in context: http://r.789695.n4.nabble.com/POSIXct-date-missing-time-component-tp4647932p4647939.html
Sent from the R help mailing list archive at Nabble.com.