From owner-freebsd-doc Tue Mar 7 12: 0: 5 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F03437BDCE for ; Tue, 7 Mar 2000 12:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA73061; Tue, 7 Mar 2000 12:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 1CDA837B8EF for ; Tue, 7 Mar 2000 11:53:03 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id OAA73013; Tue, 7 Mar 2000 14:58:34 -0500 (EST) (envelope-from cjc) Message-Id: <200003071958.OAA73013@cc942873-a.ewndsr1.nj.home.com> Date: Tue, 7 Mar 2000 14:58:34 -0500 (EST) From: "Crist J. Clark" Reply-To: cjc@cc942873-a.ewndsr1.nj.home.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/17250: Unclear language on date(1) manpage for -r option Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17250 >Category: docs >Synopsis: Unclear language on date(1) manpage for -r option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 7 12:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Crist J. Clark >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: FreeBSD 3-STABLE, FreeBSD 2.2-STABLE >Description: The '-r' option for the date(1) command reads in the manpage, -r Print out the date and time in seconds from the Epoch. Which to me sounds like it is going to return the time in that form. However, what that is supposed to mean is that the UNIX Epoch time in seconds is takenn as the argument and printed out in the default format or whatever format the user has specified with a '+format' argument. >How-To-Repeat: % date -r 0 Wed Dec 31 19:00:00 EST 1969 % date -r 0 +%m/%d/%y 12/31/69 % date -r 0 +%s 0 % man date >Fix: I think the simple change from 'in' to 'at' in the above quote from the manpage should do it, but add a few more words on the UNIX Epoch to aid the uninitiated since it comes up no where else on this manpage. --- /usr/src/bin/date/date.1 Fri Dec 17 06:32:08 1999 +++ date.1 Tue Mar 7 14:55:12 2000 @@ -92,9 +92,9 @@ .Nm from setting the time for other than the current machine. .It Fl r -Print out the date and time in +Print out the date and time at .Ar seconds -from the Epoch. +from the start of the UNIX Epoch (Thu Jan 1 00:00:00 GMT 1970). .It Fl t Set the kernel's value for minutes west of .Tn GMT . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message