From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16553 invoked from network); 28 Sep 2003 18:04:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Sep 2003 18:04:15 -0000 Received: (qmail 29457 invoked by alias); 28 Sep 2003 18:04:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19154 Received: (qmail 29441 invoked from network); 28 Sep 2003 18:04:06 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Sep 2003 18:04:06 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.92.193.21] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Sep 2003 18:4:6 -0000 Received: from modem-56.maryland.dialup.pol.co.uk ([62.137.71.56] helo=pwstephenson.fsnet.co.uk) by cmailm5.svr.pol.co.uk with esmtp (Exim 4.14) id 1A3ftt-0004i2-42 for zsh-workers@sunsite.dk; Sun, 28 Sep 2003 19:04:05 +0100 Received: by pwstephenson.fsnet.co.uk (Postfix, from userid 501) id 399FB8544; Sun, 28 Sep 2003 14:05:08 -0400 (EDT) Received: from pwstephenson.fsnet.co.uk (localhost [127.0.0.1]) by pwstephenson.fsnet.co.uk (Postfix) with ESMTP id 276AD84E0 for ; Sun, 28 Sep 2003 19:05:08 +0100 (BST) To: zsh-workers@sunsite.dk Subject: Re: PATCH: $SECS In-reply-to: "Clint Adams"'s message of "Sun, 28 Sep 2003 12:19:59 EDT." <20030928161959.GA29645@acolyte.scowler.net> Date: Sun, 28 Sep 2003 19:05:06 +0100 From: Peter Stephenson Message-Id: <20030928180508.399FB8544@pwstephenson.fsnet.co.uk> Clint Adams wrote: > With the following patch, you can do > > strftime "%d-%m-%y" $SECS > > Is it worth having the second argument be optional? I think that would be reasonable. > Is SECS too generic a name? More than that, I think it's too close to the existing SECONDS, and doesn't give you enough of a hint about seconds since when. Something with a vague note that it gives seconds since the epoch would be good. It's not going to be used on the command line much, so it doesn't have to be short. How about CALTIME (since it's tied to time()), CALSECONDS, EPOCHTIME, EPOCHSECONDS, ...? By the way, I'm away for a week from tomorrow. -- Peter Stephenson Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk