Article View: mod.std.unix
Article #435Re: strftime et al.
From: Moderator, John Quarterman
Date: Wed, 07 Jan 1987 23:20
Date: Wed, 07 Jan 1987 23:20
24 lines
1569 bytes
1569 bytes
From: cbosgd!mark@seismo.css.gov (Mark Horton)
Date: Wed, 24 Dec 86 17:50:53 est
Organization: AT&T Medical Information Systems, Columbus
>`%y' and `%Y' are unnecessary. `%y' could push the year-with-century,
>and `%{100}' the value 100; invoking mod (`%%'? the name may prove
>problematical)
Terminfo uses %m for mod to get around the obvious problem of using
%% to get a literal %.
Chris makes a very good point. Another observation is that there
are lots of special pieces of the date you might want; rather than
giving them a separate letter each, you could group them as
parameters in a standard vector. Thus, %p1 might get the hours
rather than %H. If you like the mnemonics, %pH might be a
synonym. The idea here is that a vector is more easily extended,
and you don't have to be so careful about using up the space of
letters. This makes it easier to be printf-compatible.
Mark
Volume-Number: Volume 9, Number 4
Technical Details
Message-ID:
<6780@ut-sally.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!std-unixReferences:
<6572@ut-sally.UUCP> <6708@ut-sally.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!std-unix From: std-unix@ut-sally.UUCP (Moderator, John Quarterman) Newsgroups: mod.std.unix Subject: Re: strftime et al. Message-ID: <6780@ut-sally.UUCP> Date: Wed, 7-Jan-87 18:20:22 EST Article-I.D.: ut-sally.6780 Posted: Wed Jan 7 18:20:22 1987 Date-Received: Thu, 8-Jan-87 00:05:41 EST References: <6572@ut-sally.UUCP> <6708@ut-sally.UUCP> Organization: IEEE P1003 Portable Operating System for Computer Environments Committee Lines: 24 Approved: jsq@sally.utexas.edu Summary: terminfo uses %m for mod