zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: $SECS
Date: Sun, 28 Sep 2003 19:05:06 +0100	[thread overview]
Message-ID: <20030928180508.399FB8544@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Clint Adams"'s message of "Sun, 28 Sep 2003 12:19:59 EDT." <20030928161959.GA29645@acolyte.scowler.net>

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@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


      parent reply	other threads:[~2003-09-28 18:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19  2:06 PATCH: langinfo module Clint Adams
2002-04-30 18:52 ` PATCH: strftime builtin Clint Adams
2002-05-01  9:38   ` Peter Stephenson
2002-05-26 21:58     ` Clint Adams
2002-05-27  5:05       ` Borsenkow Andrej
     [not found]       ` <23146.1064741224@athlon>
2003-09-28 16:19         ` PATCH: $SECS Clint Adams
2003-09-28 17:30           ` Bart Schaefer
2003-09-28 18:05           ` Peter Stephenson [this message]

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=20030928180508.399FB8544@pwstephenson.fsnet.co.uk \
    --to=pws@pwstephenson.fsnet.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).