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.