Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created October 29, 2010 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/653264 to your computer and use it in GitHub Desktop.
Save bnoordhuis/653264 to your computer and use it in GitHub Desktop.
futimes.md
### fs.utimes(path, atime, mtime, [callback])
Asynchronous utimes(2). Updates the last access and last modified timestamps of
the file pointed to by `path`.
`atime` and `mtime` may be a (fractional) UNIX timestamp or a Date object.
No arguments other than a possible exception are given to the completion callback.
### fs.futimes(fd, atime, mtime, [callback])
Asynchronous futimes(2). Updates the last access and last modified timestamps of
the file associated with file descriptor `fd`.
`atime` and `mtime` may be a (fractional) UNIX timestamp or a Date object.
No arguments other than a possible exception are given to the completion callback.
### fs.utimesSync(path, atime, mtime)
Synchronous utimes(2). Updates the last access and last modified timestamps of
the file pointed to by `path`.
`atime` and `mtime` may be a (fractional) UNIX timestamp or a Date object.
No arguments other than a possible exception are given to the completion callback.
### fs.futimes(fd, atime, mtime, [callback])
Synchronous futimes(2). Updates the last access and last modified timestamps of
the file associated with file descriptor `fd`.
`atime` and `mtime` may be a (fractional) UNIX timestamp or a Date object.
No arguments other than a possible exception are given to the completion callback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment