Skip to content
Prev 77764 / 398502 Next

Strange behaviour of as.Date function

datai[1,1] appears to be a 'POSIXct' object.  Which date that is depends 
on the locale, and as.Date uses UTC (see ?as.Date).  For me:
[1] "2005-07-01 BST"
[1] "2005-06-30 23:00:00"
[1] "2005-06-30"

Use

as.Date(d + 23.99*3600)

to avoid this.
On Fri, 23 Sep 2005, Vittorio wrote: