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

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -