Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zsh/datetime $EPOCHREALTIME
- X-seq: zsh-workers 29664
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- Subject: Re: PATCH: zsh/datetime $EPOCHREALTIME
- Date: Wed, 10 Aug 2011 13:37:15 +0200
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e+bzbHqCjt8SSE4+1SwZoeLFUyEo1lDwnTG9wajPBG0=; b=x58R5js8KNJfpUUJBlQwnipJb6NiM2P7wTQ+vcPu3QWLmb8Xp6FxoNhXBxd5cFNEZd 4VwZjD/Oj67r5V/x18W8XC7QOSGnKgHbpHLfZeApUJ+hJ7b3Tx5ihiRTxgVpjaf+OXWp D8N5AQsW6s1/LI527lcqTTI0m6lly+3qAGsLg=
- In-reply-to: <20110810122137.3a3e4c00@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20110810122137.3a3e4c00@pwslap01u.europe.root.pri>
On 10 August 2011 13:21, Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> I had a need for the current time to better than one second precision in
> a shell function, which currently (as far as I can see) the shell
> doesn't do. It does for SECONDS, but that's not useful for comparison
> with times used by the rest of the system.
Curious, I made a similar patch last week but didn't post it yet :)
Your patch looks better though, my variable just had the nanoseconds
part in it, and no docs. I did put a --disable-rt option in mine
though.
http://cgit.mika.l3ib.org/cgit/zsh-cvs/patch/?id=975f61fe05a0bd79fe3c4ad86cbc5a9c02eca202
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author