[R] POSIXct date missing "time component"

chuck.01 CharlieTheBrown77 at gmail.com
Tue Oct 30 21:32:01 CET 2012


I suppose I should add that this happens at midnight

Some more of the data:

dates.mine  <- dput(free.dates[59:62])
structure(c(1242948600, 1242949500, 1242950400, 1242951300), class =
c("POSIXct", 
"POSIXt"), tzone = "GMT")

dates.mine
[1] "2009-05-21 23:30:00 GMT" "2009-05-21 23:45:00 GMT"
[3] "2009-05-22 00:00:00 GMT" "2009-05-22 00:15:00 GMT"

dates.mine[3]
[1] "2009-05-22 GMT"




chuck.01 wrote
> Hi, 
> 
> I have some dates that are giving me a problem, in general the dates look
> like this:
> 
> free.dates[60:61]
> [1] "2009-05-21 23:45:00 GMT" "2009-05-22 00:00:00 GMT"
> 
> but for some reason, when taken "alone", they look like this:
> free.dates[60]
> [1] "2009-05-21 23:45:00 GMT"
> 
> free.dates[61]
> [1] "2009-05-22 GMT"  # the time component is gone, and doesn't jive with
> other code I have written. 
> 
> Here are those two data points:
> 
> dates.mine  <- dput(free.dates[60:61])
> structure(c(1242949500, 1242950400), class = c("POSIXct", "POSIXt"), tzone
> = "GMT")
> 
> 
> Any idea how I can force this to include the time component?
> Thanks!





--
View this message in context: http://r.789695.n4.nabble.com/POSIXct-date-missing-time-component-tp4647932p4647933.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list