From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20267 invoked from network); 1 Nov 2007 18:28:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Nov 2007 18:28:52 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 53369 invoked from network); 1 Nov 2007 18:28:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Nov 2007 18:28:46 -0000 Received: (qmail 21180 invoked by alias); 1 Nov 2007 18:28:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24053 Received: (qmail 21158 invoked from network); 1 Nov 2007 18:28:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Nov 2007 18:28:41 -0000 Received: (qmail 53009 invoked from network); 1 Nov 2007 18:28:41 -0000 Received: from smtpout0140.sc1.he.tucows.com (HELO n068.sc1.he.tucows.com) (64.97.136.140) by a.mx.sunsite.dk with SMTP; 1 Nov 2007 18:28:34 -0000 Received: from sc.homeunix.net (82.26.162.94) by n068.sc1.he.tucows.com (7.2.069.1) id 47030B1E0024734D; Thu, 1 Nov 2007 18:28:28 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.68) (envelope-from ) id 1InemJ-0007kS-8i; Thu, 01 Nov 2007 18:28:27 +0000 Date: Thu, 1 Nov 2007 18:28:27 +0000 From: Stephane Chazelas To: Oliver Kiddle Cc: Zsh workers Subject: Re: PATCH: support for nanosecond timestamps Message-ID: <20071101182827.GB27981@sc.homeunix.net> Mail-Followup-To: Oliver Kiddle , Zsh workers References: <22003.1193931601@dcle12> <20071101155035.GA27981@sc.homeunix.net> <23800.1193938673@thecus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23800.1193938673@thecus> User-Agent: Mutt/1.5.16 (2007-09-19) On Thu, Nov 01, 2007 at 05:37:53PM +0000, Oliver Kiddle wrote: > Stephane Chazelas wrote: > > What about returning floating point numbers for zstat? > > I've just looked at the documentation for stat to see how that might > work. It'd end up returning the string representation rather than a float > given the current interface. What exactly were you envisaging? It might > be more useful to have it available with the -F (format) option. The only > trouble there is that there is no standard for the letters to use in the > format specifiers. date(1) on Linux has %N for nanoseconds. Apache uses > %q and %Q for milli and micro seconds. Do you know of any others? [...] %N is also used by ksh93: printf '%(%N)T\n' And there's %.s or %.# to have sec.nanosec Cheers, Stéphane