[Rd] as.Date: conversion pb from POSIXct (PR#9386)

2006-11-27 Thread xiao . gang . fan1
Full_Name: Xiao Gang FAN Version: 2.4.0 OS: Windows Submission from: (NULL) (159.50.101.9) library(chron) as.Date(as.POSIXct(strptime(1994-01-24,%Y-%m-%d))) [1] 1994-01-23 __ R-devel@r-project.org mailing list

Re: [Rd] as.Date: conversion pb from POSIXct (PR#9386)

2006-11-27 Thread Gabor Grothendieck
as.Date is converting your object with respect to GMT time zone and in that time zone your POSIXct date is the day before. See ?as.Date and also suggest you read R News 4/1 help desk article. On 11/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Full_Name: Xiao Gang FAN Version: 2.4.0 OS:

Re: [Rd] as.Date: conversion pb from POSIXct (PR#9386)

2006-11-27 Thread ripley
You have not told us your timezone, but this seems to be as documented if you are in CET. The help page says The 'as.Date' methods accept character strings, factors, logical 'NA' and objects of classes 'POSIXlt' and 'POSIXct'. (The last are converted to days by ignoring the