From owner-freebsd-questions Wed Nov 20 15:51:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A086837B401 for ; Wed, 20 Nov 2002 15:51:44 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71CDA43E88 for ; Wed, 20 Nov 2002 15:51:43 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b172.otenet.gr [212.205.244.180]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAKNpeIx008804; Thu, 21 Nov 2002 01:51:41 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gAKNpdqM005361; Thu, 21 Nov 2002 01:51:40 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gAKNpcIv005360; Thu, 21 Nov 2002 01:51:38 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 21 Nov 2002 01:51:38 +0200 From: Giorgos Keramidas To: How Can ThisBe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to return file date only? Message-ID: <20021120235138.GC4791@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-11-20 23:22, How Can ThisBe wrote: > I am trying to return the creation date of a file in MMDDhhmmYY > format. I'm sure there is a command, I just can not find it. > > Under cygwin the command is `date +%m%d%H%M%y -r $FILE`, however > FreeBSD does not have this function with 'date' FreeBSD has stat(1). keramida@gothmog[01:50]/home/keramida> stat -f '%c' . 1037835701 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message