zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: strftime builtin
Date: Wed, 01 May 2002 10:38:14 +0100	[thread overview]
Message-ID: <21763.1020245894@csr.com> (raw)
In-Reply-To: "Clint Adams"'s message of "Tue, 30 Apr 2002 14:52:59 EDT." <20020430185259.GA2825@dman.com>

Clint Adams wrote:
> > The strftime formats are probably pretty useless without a strftime
> > builtin.
> 
> This probably doesn't belong in the zsh/langinfo module.
> Should it get its own module?
> 
> interim documentation: strftime format secs_since_epoch

You should probably use zsh's own function ztrftime (in utils.c), which
calls strftime if that's available, else does some of the simpler formats,
and makes a couple of extra formats available.  If that doesn't seem
appropriate for some reason, at least test for HAVE_STRFTIME which is
already handled by configure.

I suppose it would be better in its own module, or else a module
timeutils or stringutils if there's any more stuff that can usefully be
collected.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


  reply	other threads:[~2002-05-01  9:38 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 [this message]
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

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=21763.1020245894@csr.com \
    --to=pws@csr.com \
    --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).