zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh workers <zsh-workers@sunsite.dk>
Subject: Re: PATCH: support for nanosecond timestamps
Date: Thu, 1 Nov 2007 18:28:27 +0000	[thread overview]
Message-ID: <20071101182827.GB27981@sc.homeunix.net> (raw)
In-Reply-To: <23800.1193938673@thecus>

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


  reply	other threads:[~2007-11-01 18:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 15:40 Oliver Kiddle
2007-11-01 15:50 ` Stephane Chazelas
2007-11-01 17:37   ` Oliver Kiddle
2007-11-01 18:28     ` Stephane Chazelas [this message]
2007-11-04 17:14     ` Peter Stephenson
2007-11-05 14:45       ` Oliver Kiddle
2007-11-05 15:26         ` Stephane Chazelas
2007-11-05 15:31         ` Peter Stephenson
2007-11-04 16:46 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071101182827.GB27981@sc.homeunix.net \
    --to=stephane_chazelas@yahoo.fr \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).