[R] time difference

Gabor Grothendieck ggrothendieck at gmail.com
Wed Jul 22 17:11:06 CEST 2009


Try this:

> file.info("abc.R")$ctime - file.info("aa.R")$ctime
Time difference of 228.9912 days


On Wed, Jul 22, 2009 at 10:44 AM, Erin Hodgess<erinm.hodgess at gmail.com> wrote:
> Dear R People:
>
> I am looking at the ctime attribute of two different files.  It
> contains the year, month, day, time of creation and time zone.
>
> Is there a way to determine the difference between the ctimes of two
> files, please?
>
> I looked in the chron package and nothing seemed to work.
>
> Thanks in advance,
> Sincerely,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list