aboutsummaryrefslogtreecommitdiff
path: root/bin/date
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-04-03 20:08:33 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-04-03 20:08:33 +0000
commit29c52ddd49f238ed54185684a7209e92e7bc3b61 (patch)
tree852cdcf096e63d859cef531654b6fa57e7cf02d3 /bin/date
parent021ad375866b980841ad6ca015ab43b2bca09b89 (diff)
Notes
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.14
-rw-r--r--bin/date/date.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index 200867473bb8..8b3f9324a09b 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)date.1 8.2 (Berkeley) 11/17/93
-.\" $Id$
+.\" $Id: date.1,v 1.4 1994/09/24 02:54:34 davidg Exp $
.\"
.Dd November 17, 1993
.Dt DATE 1
@@ -107,7 +107,7 @@ in the
manual page, as well as any arbitrary text.
The format string for the default display is:
.Bd -literal -offset indent
-``%a %b %e %H:%M:%S %Z %Y%n''.
+``%a %b %e %H:%M:%S %Z %Y''.
.Ed
.Pp
If an operand does not have a leading plus sign, it is interpreted as
diff --git a/bin/date/date.c b/bin/date/date.c
index 10980462672f..408c62194e57 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: date.c,v 1.2 1994/09/24 02:54:36 davidg Exp $
+ * $Id: date.c,v 1.3 1994/12/26 12:59:28 bde Exp $
*/
#ifndef lint
@@ -123,7 +123,7 @@ main(argc, argv)
if (!rflag && time(&tval) == -1)
err(1, "time");
- format = "%a %b %e %H:%M:%S %Z %Y\n";
+ format = "%a %b %e %H:%M:%S %Z %Y";
/* allow the operands in any order */
if (*argv && **argv == '+') {
@@ -140,7 +140,7 @@ main(argc, argv)
format = *argv + 1;
(void)strftime(buf, sizeof(buf), format, localtime(&tval));
- (void)printf("%s", buf);
+ (void)printf("%s\n", buf);
exit(retval);
}