From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24140 invoked from network); 22 Aug 2005 16:44:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Aug 2005 16:44:48 -0000 Received: (qmail 46337 invoked from network); 22 Aug 2005 16:44:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 16:44:40 -0000 Received: (qmail 1932 invoked by alias); 22 Aug 2005 16:44:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9340 Received: (qmail 1923 invoked from network); 22 Aug 2005 16:44:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Aug 2005 16:44:33 -0000 Received: (qmail 45245 invoked from network); 22 Aug 2005 16:44:33 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 16:44:26 -0000 Received: from candle.brasslantern.com ([71.116.79.190]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ILM00K60QOAMUAB@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 22 Aug 2005 10:21:50 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j7MFLfYp007414 for ; Mon, 22 Aug 2005 08:21:42 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j7MFLf6l007413 for zsh-users@sunsite.dk; Mon, 22 Aug 2005 08:21:41 -0700 Date: Mon, 22 Aug 2005 15:21:40 +0000 From: Bart Schaefer Subject: Re: Extract CTIME in zsh 4.2.3? In-reply-to: <16D53E3C-D453-414D-AB6C-3280FF5573CF@tntluoma.com> To: zsh-users@sunsite.dk Message-id: <1050822152140.ZM7412@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <95E667D6-6AE4-4CDA-B420-30033315C886@tntluoma.com> <44613de005082113114c9f2092@mail.gmail.com> <16D53E3C-D453-414D-AB6C-3280FF5573CF@tntluoma.com> Comments: In reply to Timothy Luoma "Re: Extract CTIME in zsh 4.2.3?" (Aug 22, 1:27am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Aug 22, 1:27am, Timothy Luoma wrote: } } I've found a solution, but this will only work with Tiger (Mac OS X } version 10.4.x)... } } kMDItemFSCreationDate The date an item's file was created. In other words, what you're looking for is some record of the inode creation time, rather than the inode change time which is what the stat ctime refers to. Unfortunately this information simply does not exist on many kinds of filesystems for OSs whose names have an N in the middle and an X at the end. (If I write such an OS sometime, I'll call it ANIMAX. You read it here first.) } If there's a more portable way to get this to work, I'd like to learn } about it, but this will work for now. On filesystems derived (as in code was taken, not just inspired by like the linux ext filesystems) from BSD's FFS, I *think* you can get this with "ffsinfo -i N" where N is the inode number (which you have to get some other way, e.g. with stat). It's called the "birth time". Please note, though, that I may be entirely wrong -- the man page for ffsinfo doesn't say what data is dumped, and I don't have a BSDish system handy to try it.