Skip to content

Commit 77b93bd

Browse files
committed
mention precision
1 parent f1b96d2 commit 77b93bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

file-api.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,12 @@
883883
originals and copies. (e.g. \texttt{tar} or \texttt{rsync}).
884884
\item The \texttt{futimens} and \texttt{utimensat} offer greater deal of
885885
flexibility. They allow to set the time to current time, using special
886-
constant in the \texttt{timespec} structure. Also, \texttt{utimensat}
886+
constant in the \texttt{timespec} structure. Also, \texttt{utimensat()}
887887
has a flag that controls whether to work directly on a symlink or its target.
888-
\item The shell interface for \texttt{utime} is the command \texttt{touch}.
888+
Lastly, they offer greater precision (nanoseconds), compared to legacy
889+
interfaces such as \texttt{utime()} (seconds) or \texttt{utimes()}
890+
(microseconds).
891+
\item The shell interface for the above interfaces is the command \texttt{touch}.
889892
\item There is an excellent section \emph{1.7 Dates and Times} in [Butenhof]
890893
that goes through various representations of time in Unix systems, and functions
891894
that use those. It is 12 pages of good stuff, highly recommended if you ever

0 commit comments

Comments
 (0)