R POSIXct and as.Date -


i have date , time value i'm using posixct store in variable. , when use as.date date different - why ?

x<-as.posixct("2012-02-25 19:00:00") as.date(x)  [1] "2012-02-**26**" 

why incrementing day 1?

by using x<-as.posixct("2012-02-25 19:00:00") setting time zone, tz, current systems time zone, est.

however when use as.date without declaring time zone default gmt. gmt 5 hours ahead of est 25/02/2012 19:00 00:00 26/02/2012.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -