Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: $SECS
- X-seq: zsh-workers 19154
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: $SECS
- Date: Sun, 28 Sep 2003 19:05:06 +0100
- In-reply-to: "Clint Adams"'s message of "Sun, 28 Sep 2003 12:19:59 EDT." <20030928161959.GA29645@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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 <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author