[R] Problems with as.POSIXct

William Dunlap wdunlap at tibco.com
Thu Sep 22 18:08:51 CEST 2011


Didn't Columbia switch to a year of daylight
savings time at what would have been midnight
May 3, 1992 (so midnight did not exist that day)?

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com 

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of KENNETH R
> CABRERA
> Sent: Thursday, September 22, 2011 8:59 AM
> To: r-help at r-project.org
> Cc: krcabrer at gmail.com
> Subject: [R] Problems with as.POSIXct
> 
> Hi R users:
> 
> This is a very strange problem:
> 
> Why this instruction shows me NA?,
> and any other date shows me that error!
> 
> as.POSIXct(strptime("1992-5-3",format="%Y-%m-%d"))
> 
> This is my R version on windows 7.
> "R version 2.13.1 Patched (2011-08-25 r56794)"
> 
> Thank you for your help.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list