🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by rj Fri, 16 Dec 2011 08:05
[SLRN] Can I set a 4-digit-year?
#247781
Author: rj
Date: Fri, 16 Dec 2011 08:05
24 lines
1582 bytes
My .slrnrc has:

set overview_date_format "%D"

and:

header_display_format 0 "%F %-5S%G  %8D%-6l:  %-22r%t%s"

which makes my dates look like:

          12/16/11

I'd prefer them to look like this:

          2011/12/16

but a quick scan through the strftime manpage gave me a lot of
year-by-decimal stuff and no apparent way to set a simple 4-digit year.
Or if it did I missed it.

Is there a way to do this in slrn?

-- 
  Why you should never talk to cops:  <http://is.gd/iV74U>
Re: [SLRN] Can I set a 4-digit-year?
#247787
Author: Adam Funk
Date: Fri, 16 Dec 2011 14:14
43 lines
2094 bytes
On 2011-12-16, rj wrote:

> My .slrnrc has:
>
> set overview_date_format "%D"
>
> and:
>
> header_display_format 0 "%F %-5S%G  %8D%-6l:  %-22r%t%s"
>
> which makes my dates look like:
>
>           12/16/11
>
> I'd prefer them to look like this:
>
>           2011/12/16
>
> but a quick scan through the strftime manpage gave me a lot of
> year-by-decimal stuff and no apparent way to set a simple 4-digit year.
> Or if it did I missed it.
>
> Is there a way to do this in slrn?

Using 

set overview_date_format  "%Y/%m/%d %H:%M"

in .slrnrc gives me

2011/12/16 08:05

in the date column of the group overview (I assume that's where you're
talking about changing the date format).  AFAICT, the date format you
want has to be put together from its components, unlike %D or %F.



-- 
Anything invented before your 15th birthday is the order of nature.
Anything invented between your 15th and 35th birthday is new and
exciting. Anything invented after that day, however, is against 
nature and should be prohibited.                    [Douglas Adams]
Re: [SLRN] Can I set a 4-digit-year?
#247791
Author: rj
Date: Fri, 16 Dec 2011 19:48
22 lines
1859 bytes
On Fri, 16 Dec 2011 14:14:54 +0000, Adam Funk <a24061@ducksburg.com> wrote:

> set overview_date_format  "%Y/%m/%d %H:%M"
> in .slrnrc gives me
> 2011/12/16 08:05
>
> in the date column of the group overview (I assume that's where you're
> talking about changing the date format).


Yes.  I didn't know the "overview_date_format" setting applied to
date-displays elsewhere.


> AFAICT, the date format you want has to be put together from its
> components, unlike %D or %F.

"Of course," he says after the fact.  Thanks loads.


-- 
  Why you should never talk to cops:  <http://is.gd/iV74U>
Re: [SLRN] Can I set a 4-digit-year?
#247792
Author: Adam Funk
Date: Fri, 16 Dec 2011 20:42
30 lines
2165 bytes
On 2011-12-16, rj wrote:

> On Fri, 16 Dec 2011 14:14:54 +0000, Adam Funk <a24061@ducksburg.com> wrote:
>
>> set overview_date_format  "%Y/%m/%d %H:%M"
>> in .slrnrc gives me
>> 2011/12/16 08:05
>>
>> in the date column of the group overview (I assume that's where you're
>> talking about changing the date format).
>
>
> Yes.  I didn't know the "overview_date_format" setting applied to
> date-displays elsewhere.

Oh, where does it apply other that in the group overview?


>> AFAICT, the date format you want has to be put together from its
>> components, unlike %D or %F.
>
> "Of course," he says after the fact.  Thanks loads.

No problem, it's nice to be useful after a long hiatus.


-- 
Mathematiker sind wie Franzosen: Was man ihnen auch sagt, übersetzen
sie in ihre eigene Sprache, so daß unverzüglich etwas völlig anderes
daraus wird.                                                [Goethe]
Re: [SLRN] Can I set a 4-digit-year?
#247795
Author: rj
Date: Sat, 17 Dec 2011 01:22
14 lines
1638 bytes
On Fri, 16 Dec 2011 20:42:31 +0000, Adam Funk <a24061@ducksburg.com> wrote:
> Oh, where does it apply other that in the group overview?


I don't think it does.  This:

> (I assume that's where you're talking about changing the date format)

led me to believe that the "overview_date_format" setting might affect
a date-setting in another location.

-- 
  Why you should never talk to cops:  <http://is.gd/iV74U>
Re: [SLRN] Can I set a 4-digit-year?
#247800
Author: Adam Funk
Date: Sun, 18 Dec 2011 21:13
18 lines
1711 bytes
On 2011-12-17, rj wrote:

> On Fri, 16 Dec 2011 20:42:31 +0000, Adam Funk <a24061@ducksburg.com> wrote:
>> Oh, where does it apply other that in the group overview?
>
>
> I don't think it does.  This:
>
>> (I assume that's where you're talking about changing the date format)
>
> led me to believe that the "overview_date_format" setting might affect
> a date-setting in another location.

Ah, OK.

-- 
I heard that Hans Christian Andersen lifted the title for "The Little
Mermaid" off a Red Lobster Menu.                         [Bucky Katt]
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