Re: [R] Standard Time Stamps

2009-10-28 Thread Sunita Patil
Hello Jim Thanx a lot. Actually since long I was trying > dts = c("1989-09-28", "2001-01-15", "2004-08-30", "1990-02-09") > dts [1] "1989-09-28" "2001-01-15" "2004-08-30" "1990-02-09" > GMT = timeDate(dts, zone = "GMT", FinCenter = "GMT") > GMT GMT [1] [1989-09-28] [2001-01-15] [2004-08-30] [199

Re: [R] Standard Time Stamps

2009-10-28 Thread jim holtman
How about this: > x <- c("2008-09-12T23:48:07.747Z", "2008-09-12T20:35:07.747Z") > x.t <- as.POSIXct(x, format="%Y-%m-%dT%H:%M:%OS") > > x.t [1] "2008-09-12 23:48:07 EDT" "2008-09-12 20:35:07 EDT" > diff(x.t) Time difference of -3.216667 hours > On Wed, Oct 28, 2009 at 12:11 PM, Sunita22 wrote:

[R] Standard Time Stamps

2009-10-28 Thread Sunita22
Hello I have a data set which contains a column of Standard Time Stamps (2008-09-12T23:48:07.747Z, 2008-09-12T20:35:07.747Z, etc) I need to find differences in consecutive time stamps and then need to plot a graph using it, can anyone guide me as to how to handle this type of data? Thanks in ad