Dear R-experts, Need your help.
Dear R- Experts, Seek your help. I created a time sequence using: x[i] <-chron(dates, tt, format=c(dates="y-m-d", tt="h:m:s")) first element in the list is displayed as: (09-01-01 00:00:00) Further elements are: (09-01-01 00:01:00) (09-01-01 00:02:00) (09-01-01 00:03:00) ... and so on. I want to compare each value with the timestamp values from database. I cannot simply compare above values with the timestamp values, as the above values are not in "date" format. Therefore, I used: format.Date(x[1],"%y-%m-%d %H:%M:%S"), I expect following value: "09-01-01 00:00:00" HOWEVER, the value displayed as: "09-01-01 01:00:00" Unnecessary addition of 1 hour. I want to create time sequence starting from "09-01-01 00:00:00" !!! Can any one please help? Thank you. -- View this message in context: http://www.nabble.com/difficulty-in-starting-time-sequence-from-00%3A00%3A00-tp22053632p22053632.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.