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] [1990-02-09]
> difftimeDate(GMT[1:2], GMT[-(1:2)])
Time differences in days
[1] -5450  3993
attr(,"tzone")
[1] "GMT"

*But the same was not working for 2008-09-12T23:48:07.747Z

Thank you very much*, *it worked*

Regards

Our Thoughts have the Power to Change our Destiny.
Sunita


On Wed, Oct 28, 2009 at 9:45 PM, jim holtman <jholtman@gmail.com> wrote:

> 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 <sunitap22@gmail.com> wrote:
> >
> > 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 advance
> >
> > Sunita
> > --
> > View this message in context:
> http://www.nabble.com/Standard-Time-Stamps-tp26097512p26097512.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.
> >
>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem that you are trying to solve?
>

	[[alternative HTML version deleted]]


