🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Nollaig MacKenzie Sun, 14 May 2000 00:00
[slrn] Can I change the date format for %d ?
#61549
Author: Nollaig MacKenzie
Date: Sun, 14 May 2000 00:00
25 lines
1255 bytes
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?

TIA, N.
-- 
Nollaig MacKenzie :: nollaig@amhuinnsuidhe.cx
http://www.amhuinnsuidhe.cx

Re: [slrn] Can I change the date format for %d ?
#61594
Author: Heikki Kantola
Date: Mon, 15 May 2000 00:00
34 lines
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.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads