The R Project SVN R

Rev

Rev 71391 | Rev 74064 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71391 Rev 71395
Line 1... Line 1...
1
% File src/library/base/man/Sys.info.Rd
1
% File src/library/base/man/Sys.info.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 2011 R Core Team
3
% Copyright 2011-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Sys.setFileTime}
6
\name{Sys.setFileTime}
7
\alias{Sys.setFileTime}
7
\alias{Sys.setFileTime}
8
\title{
8
\title{
Line 19... Line 19...
19
  \item{path}{
19
  \item{path}{
20
    A length-one character vector specifying the path to a file or directory.
20
    A length-one character vector specifying the path to a file or directory.
21
  }
21
  }
22
  \item{time}{
22
  \item{time}{
23
    A date-time of class \code{"\link{POSIXct}"} or an object which can
23
    A date-time of class \code{"\link{POSIXct}"} or an object which can
24
    be coerced to one.  Fractions of a second are ignored.
24
    be coerced to one.  Fractions of a second may be ignored.
25
  }
25
  }
26
}
26
}
27
\details{
27
\details{
28
  This attempts sets the file time to the value specified.
28
  This attempts sets the file time to the value specified.
29
 
29
 
30
  On a Unix-alike it uses the system call \code{utimes} if that is
30
  On a Unix-alike it uses the system call \code{utimensat} if that is
31
  available, otherwise \code{utime}.  On a POSIX file system it sets
31
  available, otherwise \code{utimes} or \code{utime}.  On a POSIX file
32
  both the last-access and modification times.
32
  system it sets both the last-access and modification times.
-
 
33
  Fractional seconds will set as from \R 3.4.0 on OSes with the
-
 
34
  requisite system calls and suitable filesystems.
33
 
35
 
34
  On Windows it uses the system call \code{SetFileTime} to set the
36
  On Windows it uses the system call \code{SetFileTime} to set the
35
  \sQuote{last write time}.  Some Windows file systems only record the
37
  \sQuote{last write time}.  Some Windows file systems only record the
36
  time at a resolution of two seconds.
38
  time at a resolution of two seconds.
37
}
39
}