From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8728 invoked by alias); 10 Aug 2011 11:37:32 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29664 Received: (qmail 9479 invoked from network); 10 Aug 2011 11:37:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: <20110810122137.3a3e4c00@pwslap01u.europe.root.pri> References: <20110810122137.3a3e4c00@pwslap01u.europe.root.pri> Date: Wed, 10 Aug 2011 13:37:15 +0200 Message-ID: Subject: Re: PATCH: zsh/datetime $EPOCHREALTIME From: Mikael Magnusson To: Peter Stephenson Cc: "Zsh Hackers' List" Content-Type: text/plain; charset=UTF-8 On 10 August 2011 13:21, Peter Stephenson 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