From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14581 invoked from network); 22 Aug 2005 05:28:17 -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 05:28:17 -0000 Received: (qmail 42111 invoked from network); 22 Aug 2005 05:28:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 05:28:11 -0000 Received: (qmail 10341 invoked by alias); 22 Aug 2005 05:28:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9337 Received: (qmail 10327 invoked from network); 22 Aug 2005 05:28:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Aug 2005 05:28:01 -0000 Received: (qmail 41014 invoked from network); 22 Aug 2005 05:28:01 -0000 Received: from whisk.dreamhost.com (205.196.208.4) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 05:27:57 -0000 Received: from [192.168.1.4] (adsl-68-252-56-170.dsl.wotnoh.ameritech.net [68.252.56.170]) by whisk.dreamhost.com (Postfix) with ESMTP id 5AD02175106 for ; Sun, 21 Aug 2005 22:27:55 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <44613de005082113114c9f2092@mail.gmail.com> References: <95E667D6-6AE4-4CDA-B420-30033315C886@tntluoma.com> <44613de005082113114c9f2092@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <16D53E3C-D453-414D-AB6C-3280FF5573CF@tntluoma.com> Content-Transfer-Encoding: 7bit From: Timothy Luoma Subject: Re: Extract CTIME in zsh 4.2.3? Date: Mon, 22 Aug 2005 01:27:52 -0400 To: zsh-users@sunsite.dk X-Mailer: Apple Mail (2.734) 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.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 I've found a solution, but this will only work with Tiger (Mac OS X version 10.4.x)... http://developer.apple.com/macosx/spotlight.html kMDItemFSCreationDate The date an item's file was created. kMDItemContentCreationDate The date an item's content was created. The first tells you when the file was first created. The second tells you when content was added to it (this is probably identical in most circumstances) This is how you get to it: $ mdls FILENAME |\ grep "^kMDItemContentCreationDate" kMDItemContentCreationDate = 2005-08-20 00:47:41 -0400 And this is how I'd get just the date: $ mdls FILENAME |\ awk -F" " '/kMDItemFSCreationDate/{print $3}' 2005-08-20 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. TjL