You forgot to provide code to work with. There are multiple ways to deal with time in R, but we don't know how you are doing it. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity.
Lao Meng <laomen...@gmail.com> wrote: >t2-t1 is ok,but only can get"Time difference of 786 days",but I wanna >get >the "786" only.How can I do then? > >Thanks! > >2011/11/11 Lao Meng <laomen...@gmail.com> > >> time1 = 2008-03-09 >> time2 = 2010-9-10 >> >> How to compute how many years between time1 and time2? >> >> Thanks! >> >> best >> >> > > [[alternative HTML version deleted]] > >______________________________________________ >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. ______________________________________________ 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.