summaryrefslogtreecommitdiff
path: root/bin/date/date.1
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 06:55:11 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 06:55:11 +0000
commit3e6f48209fb1159a6ceb04d1acc6f1add775fc45 (patch)
tree72ceb92bea0f90da3a9209d6929cec5ee0f1df08 /bin/date/date.1
parenta6174cd0b609f882475db2af94f6559e5a5e6ff8 (diff)
Add some rudimentary EXAMPLES sections and standardize the way we display
existing EXAMPLES sections.
Diffstat (limited to 'bin/date/date.1')
-rw-r--r--bin/date/date.123
1 files changed, 7 insertions, 16 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index ff72ee5018d..36f602f5b38 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: date.1,v 1.25 2000/04/15 11:45:53 aaron Exp $
+.\" $OpenBSD: date.1,v 1.26 2000/10/18 06:55:07 aaron Exp $
.\" $NetBSD: date.1,v 1.12 1996/03/12 04:32:37 phil Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
@@ -143,31 +143,22 @@ Everything but the minute is optional.
Time changes for Daylight Saving Time, standard time, leap seconds,
and leap years are handled automatically.
.Sh EXAMPLES
-The command:
-.Bd -literal -offset indent
-date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S"
-.Ed
+.Cm date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S"
.Pp
-will display:
+Displays
.Bd -literal -offset indent
DATE: 1987-11-21
TIME: 13:36:16
.Ed
.Pp
-The command:
-.Bd -literal -offset indent
-date 8506131627
-.Ed
+.Cm date 8506131627
.Pp
-sets the date to
+Sets the date to
.Dq Li "June 13, 1985, 4:27 PM" .
.Pp
-The command:
-.Bd -literal -offset indent
-date 1432
-.Ed
+.Cm date 1432
.Pp
-sets the time to
+Sets the time to
.Li "2:32 PM" ,
without modifying the date.
.Sh ENVIRONMENT