summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-05-29 12:24:20 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-05-29 12:24:20 +0000
commite2c923d57679afda6e8202ff4f49f7e4557a93f2 (patch)
tree41f5339bbdca8499e526e3ea2081c5e825ff1b79 /bin
parent35838f657accb59f91276c60a6d028fa1766e725 (diff)
section reorder;
Diffstat (limited to 'bin')
-rw-r--r--bin/date/date.160
1 files changed, 30 insertions, 30 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index 3ec9307f468..dc62b001de2 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: date.1,v 1.35 2003/03/12 20:12:35 deraadt Exp $
+.\" $OpenBSD: date.1,v 1.36 2003/05/29 12:24:19 jmc Exp $
.\" $NetBSD: date.1,v 1.12 1996/03/12 04:32:37 phil Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -155,25 +155,6 @@ Everything but the minute is optional.
.Pp
Time changes for Daylight Saving Time, standard time, leap seconds,
and leap years are handled automatically.
-.Sh EXAMPLES
-.Li $ date \&"+DATE: %Y-%m-%d%nTIME: %H:%M:%S\&"
-.Pp
-Displays
-.Bd -literal -offset indent
-DATE: 1987-11-21
-TIME: 13:36:16
-.Ed
-.Pp
-.Li # date 8506131627
-.Pp
-Sets the date to
-.Dq Li "June 13, 1985, 4:27 PM" .
-.Pp
-.Li # date 1432
-.Pp
-Sets the time to
-.Li "2:32 PM" ,
-without modifying the date.
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev TZ
@@ -196,16 +177,25 @@ record of date resets and time changes
.It Pa /var/log/messages
record of the user setting the time
.El
-.Sh SEE ALSO
-.Xr gettimeofday 2 ,
-.Xr strftime 3 ,
-.Xr utmp 5 ,
-.Xr timed 8
-.Rs
-.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
-.%A R. Gusella
-.%A S. Zatti
-.Re
+.Sh EXAMPLES
+.Li $ date \&"+DATE: %Y-%m-%d%nTIME: %H:%M:%S\&"
+.Pp
+Displays
+.Bd -literal -offset indent
+DATE: 1987-11-21
+TIME: 13:36:16
+.Ed
+.Pp
+.Li # date 8506131627
+.Pp
+Sets the date to
+.Dq Li "June 13, 1985, 4:27 PM" .
+.Pp
+.Li # date 1432
+.Pp
+Sets the time to
+.Li "2:32 PM" ,
+without modifying the date.
.Sh DIAGNOSTICS
Exit status is 0 on success, 1 if unable to set the date, and 2
if able to set the local date, but unable to set it globally.
@@ -226,6 +216,16 @@ between
and
.Xr timed 8
fails.
+.Sh SEE ALSO
+.Xr gettimeofday 2 ,
+.Xr strftime 3 ,
+.Xr utmp 5 ,
+.Xr timed 8
+.Rs
+.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD"
+.%A R. Gusella
+.%A S. Zatti
+.Re
.Sh STANDARDS
The
.Nm