1
0
Files
irix-657m-src/eoe/man/man1/settime.1
2022-09-29 17:59:04 +03:00

44 lines
1.4 KiB
Groff

'\"macro stdmacro
.if n .pH g1.settime @(#)settime 40.7 of 5/22/91
.\" Copyright 1991 UNIX System Laboratories, Inc.
.\" Copyright 1989, 1990 AT&T
.nr X
.if \nX=0 .ds x} settime 1 "XENIX System Compatibility Package" "\&"
.if \nX=1 .ds x} settime 1 "XENIX System Compatibility Package"
.if \nX=2 .ds x} settime 1 "" "\&"
.if \nX=3 .ds x} settime "" "" "\&"
.TH \*(x}
.SH NAME
\f4settime\fP \- change the access and modification dates of files
.SH SYNOPSIS
\f4settime\fP \f2mmddhhmm\f1[\f2yy\f1] [\f4-f\fP \f2fname\f1] \f2name\f1. . .
.SH DESCRIPTION
\f4settime\fP sets the access and modification dates for one or more files.
The dates are set to the specified date,
or to the access and modification dates
of the file specified via \f4-f\fP.
Exactly one of these methods must be
used to specify the new date(s).
The first \f2mm\f1 is the month number;
\f2dd\f1 is the day number in the month; \f2hh\f1 is the hour number
(24 hour system); the second \f2mm\f1 is the minute number; \f2yy\f1 is
the last two digits of the year and is optional.
For example:
.P
.RS
\f4settime 1008004583 ralph pete\f1
.RE
.P
sets the access and modification dates of files \f4ralph\f1 and \f4pete\f1
to Oct. 8, 12:45 AM, 1983.
Another example:
.P
.RS
\f4settime -f ralph john\f1
.RE
.P
This sets the access and modification dates of the file \f4john\f1
to those of the file \f4ralph\f1.
.SH NOTES
Use of \f4touch\fP in place of \f4settime\fP is encouraged.