summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/date.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/date.1')
-rw-r--r--usr/src/man/man1/date.164
1 files changed, 13 insertions, 51 deletions
diff --git a/usr/src/man/man1/date.1 b/usr/src/man/man1/date.1
index 7911b374c8..08c3b0b878 100644
--- a/usr/src/man/man1/date.1
+++ b/usr/src/man/man1/date.1
@@ -3,14 +3,14 @@
.\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH date 1 "1 May 2011" "SunOS 5.11" "User Commands"
+.TH DATE 1 "May 1, 2011"
.SH NAME
date \- write the date and time
.SH SYNOPSIS
@@ -84,12 +84,10 @@ Fri Dec 23 10:10:42 EST 1988
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-a\fR [\|\fB-\fR\|]\|\fIsss.fff\fR \fR
.ad
.RS 24n
-.rt
Slowly adjust the time by \fIsss\fR.\fIfff\fR seconds (\fIfff\fR represents
fractions of a second). This adjustment can be positive or negative. The
system's clock is sped up or slowed down until it has drifted by the number of
@@ -98,24 +96,20 @@ seconds specified. Only the super-user may adjust the time.
.sp
.ne 2
-.mk
.na
\fB\fB-u\fR \fR
.ad
.RS 24n
-.rt
Display (or set) the date in Greenwich Mean Time (GMT\(emuniversal time),
bypassing the normal conversion to (or from) local time.
.RE
.sp
.ne 2
-.mk
.na
\fB-R\fR
.ad
.RS 24n
-.rt
Change the default format to the format used for mail message headers
(similar to RFC 822 format). The default format becomes
.sp
@@ -132,12 +126,10 @@ Change the default format to the format used for mail message headers
The following operands are supported:
.sp
.ne 2
-.mk
.na
\fB\fB+\fR\fIformat\fR \fR
.ad
.RS 12n
-.rt
If the argument begins with \fB+\fR, the output of \fBdate\fR is the result of
passing \fIformat\fR and the current time to \fBstrftime()\fR. \fBdate\fR uses
the conversion specifications listed on the \fBstrftime\fR(3C) manual page,
@@ -145,24 +137,20 @@ with the conversion specification for \fB%C\fR determined by whether
\fB/usr/bin/date\fR or \fB/usr/xpg4/bin/date\fR is used:
.sp
.ne 2
-.mk
.na
\fB\fB/usr/bin/date\fR \fR
.ad
.RS 23n
-.rt
Locale's date and time representation. This is the default output for
\fBdate\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/usr/xpg4/bin/date\fR \fR
.ad
.RS 23n
-.rt
Century (a year divided by 100 and truncated to an integer) as a decimal number
[00-99].
.RE
@@ -173,67 +161,55 @@ must be quoted; see the EXAMPLES section.
.sp
.ne 2
-.mk
.na
\fB\fImm\fR \fR
.ad
.RS 12n
-.rt
Month number
.RE
.sp
.ne 2
-.mk
.na
\fB\fIdd\fR \fR
.ad
.RS 12n
-.rt
Day number in the month
.RE
.sp
.ne 2
-.mk
.na
\fB\fIHH\fR \fR
.ad
.RS 12n
-.rt
Hour number (24 hour system)
.RE
.sp
.ne 2
-.mk
.na
\fB\fIMM\fR \fR
.ad
.RS 12n
-.rt
Minute number
.RE
.sp
.ne 2
-.mk
.na
\fB\fISS\fR \fR
.ad
.RS 12n
-.rt
Second number
.RE
.sp
.ne 2
-.mk
.na
\fB\fIcc\fR \fR
.ad
.RS 12n
-.rt
Century (a year divided by 100 and truncated to an integer) as a decimal number
[00-99]. For example, \fIcc\fR is \fB19\fR for the year 1988 and \fB20\fR for
the year 2007.
@@ -241,12 +217,10 @@ the year 2007.
.sp
.ne 2
-.mk
.na
\fB\fIyy\fR \fR
.ad
.RS 12n
-.rt
Last two digits of the year number. If century (\fIcc\fR) is not specified,
then values in the range \fB69-99\fR shall refer to years 1969 to 1999
inclusive, and values in the range \fB00-68\fR shall refer to years 2000 to
@@ -351,12 +325,10 @@ that affect the execution of \fBdate\fR: \fBLANG\fR, \fBLC_ALL\fR,
\fBLC_CTYPE\fR, \fBLC_TIME\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
.sp
.ne 2
-.mk
.na
\fB\fBTZ\fR \fR
.ad
.RS 7n
-.rt
Determine the timezone in which the time and date are written, unless the
\fB-u\fR option is specified. If the \fBTZ\fR variable is not set and the
\fB-u\fR is not specified, the system default timezone is used.
@@ -368,23 +340,19 @@ Determine the timezone in which the time and date are written, unless the
The following exit values are returned:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR \fR
.ad
.RS 7n
-.rt
Successful completion.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB>0\fR \fR
.ad
.RS 7n
-.rt
An error occurred.
.RE
@@ -397,13 +365,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIenabled
+CSI enabled
.TE
.SS "/usr/xpg4/bin/date"
@@ -411,15 +378,14 @@ CSIenabled
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-CSIenabled
+CSI enabled
_
-Interface StabilityStandard
+Interface Stability Standard
.TE
.SH SEE ALSO
@@ -429,23 +395,19 @@ Interface StabilityStandard
.SH DIAGNOSTICS
.sp
.ne 2
-.mk
.na
\fB\fBno permission\fR \fR
.ad
.RS 19n
-.rt
You are not the super-user and you tried to change the date.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBbad conversion\fR \fR
.ad
.RS 19n
-.rt
The date set is syntactically incorrect.
.RE