Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 01:51:38 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        How Can ThisBe <howcanthisbe300@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to return file date only?
Message-ID:  <20021120235138.GC4791@gothmog.gr>
In-Reply-To: <F195nRMWuLn5U9T3TGJ000054e3@hotmail.com>
References:  <F195nRMWuLn5U9T3TGJ000054e3@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-11-20 23:22, How Can ThisBe <howcanthisbe300@hotmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021120235138.GC4791>