From owner-freebsd-questions@FreeBSD.ORG Thu Sep 17 14:17:34 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D67D8106576F for ; Thu, 17 Sep 2009 14:17:34 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id B10288FC29 for ; Thu, 17 Sep 2009 14:17:34 +0000 (UTC) Received: (qmail 31303 invoked from network); 17 Sep 2009 14:17:33 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Sep 2009 14:17:33 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 35E6B5086E; Thu, 17 Sep 2009 10:17:32 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org References: <200909171303.n8HD3fEV044827@dc.cis.okstate.edu> Date: Thu, 17 Sep 2009 10:17:32 -0400 In-Reply-To: <200909171303.n8HD3fEV044827@dc.cis.okstate.edu> (Martin McCormick's message of "Thu, 17 Sep 2009 08:03:41 -0500") Message-ID: <44vdjhbqpv.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: A question about the date Function X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2009 14:17:34 -0000 Martin McCormick writes: > Thanks to those who answered my question. I have discovered in > the process one big difference between the date function in > freebsd and Linux. Under freebsd, date -r 1234567890 or whatever > value you need converts that unsigned long in to the normal date > output set to that reference value. IN Linux, -r should be > followed by a file name and it gives you the formatted date > as read from the mtime of that reference file. The *only* standardized option for date is -u... -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/