search for: mydate2

Displaying 2 results from an estimated 2 matches for "mydate2".

Did you mean: mydate
2009 Jul 11
2
Date conversions
...ometimes I get NAs. That I don't understand. Can anyone see what I'm doing wrong here? As I say, I think I'd like to convert 01/03/2004 into 1040103 as this numeric format seems very good for doing comparisons. The code: MyDate1 = read.csv("C:\\Date1.txt",header=TRUE) MyDate2 = read.csv("C:\\Date2.txt",header=TRUE) MyDate1 Date1 = MyDate1$Date class(Date1) mode(Date1) Date1 Date1 = as.Date(Date1, "%m/%d/%y") class(Date1) mode(Date1) Date1 MyDate2 Date2 = MyDate2$EnDate class(Date2) mode(Date2) Date2 Date2 = strptime(Date2 + 19e6L, "%Y%m%d&quo...
2006 May 21
1
POSIX, time zone and Windows
...<-strptime(mydate, "%y/%m/%d/%H:%M:%S") mydate [1] "2006-05-16 11:30:00" as.POSIXct(mydate) [1] "2006-05-16 11:30:00 Paris, Madrid" Which is obviously not what I wish regarding the specification Paris, Madrid... I have tried to pass something to the argument tz mydate2<-strptime(mydate, "%y/%m/%d/%H:%M:%S",tz="GMT") or mydate2<-strptime(mydate, "%y/%m/%d/%H:%M:%S",tz="GMT+08") I get this: mydate2 [1] NA Is there a way to specify the time zone on which I was working (actually GTM + 8:00)? I have read in R-help that...