Article View: news.software.readers
Article #61594Re: [slrn] Can I change the date format for %d ?
From: Heikki Kantola
Date: Mon, 15 May 2000 00:00
Date: Mon, 15 May 2000 00:00
34 lines
2063 bytes
2063 bytes
Nollaig MacKenzie <nollaig@amhuinnsuidhe.cx> informed news.software.readers with the following: >For followups, I'd like the attribution >line to start "On <such and such date>, ><so and so> said:" If I set the string as >"On %d %f said:", I get this date format: > > Fri, 12 May 2000 12:55:03 GMT > >It would be nice to be able to get something >shorter, say: > > 2000.05.12 12:55:03 > >that is, the output of > > date +"%Y.%m.%d %T" > >I don't see anything in the docs saying that >I can do that. Have I missed something? The vanilla Slrn unfortunately doesn't really support date formatting (of course, one can write S-Lang macros to manipulate the date strings, but that's quite clumsy), but among the patches collected on <URL: http://www.netcologne.de/%7Enc-schuelfe/slrn/patches/> there's one which will allows (localized) formatted output of dates. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Technical Details
Message-ID:
<slrn8i04se.a4ug.hezu@tuuri.ling.helsinki.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8hu687.3kc.nollaig@amhuinnsuidhe.cx>Show Full Headers
Complete Article Headers
Message-ID: <slrn8i04se.a4ug.hezu@tuuri.ling.helsinki.fi> Subject: Re: [slrn] Can I change the date format for %d ? Date: Mon, 15 May 2000 00:00:00 +0000 From: Heikki Kantola <hezu@iki.fi> References: <slrn8hu687.3kc.nollaig@amhuinnsuidhe.cx> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 623647045 Content-Transfer-Encoding: 8bit Mail-Copies-To: nobody Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.helsinki.fi X-Trace: oravannahka.helsinki.fi 958403471 15634 128.214.78.4 (15 May 2000 15:11:11 GMT) Organization: Department of General Wizardry, Unseen University, Ankh-Morpork User-Agent: slrn/0.9.6.2 (OSF1) Mime-Version: 1.0 NNTP-Posting-Date: 15 May 2000 15:11:11 GMT Newsgroups: news.software.readers