🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Thomas Schultz Fri, 16 Jul 1999 00:00
[slrn] Patch: Formatted output of dates
#49894
Author: Thomas Schultz
Date: Fri, 16 Jul 1999 00:00
37 lines
2322 bytes
Hi,

I just wrote a patch that makes it possible to have a formatted output
of dates in "header_display_format" and "followup_string" (the
original, unconfigureable patch is due to Gottfried Schwieters
<Gottfried.Schwieters@gmx.de>). It introduces a new descriptor, '%D',
which will print the date as determined by the following variables:

 - "overview_date_format" (syntax of strftime(3)) is the format string
   used for "header_display_format"; defaults to "%d %b %y %H:%M".

 - "followup_date_format" (syntax of strftime(3)) is the format string
   used for "followup_string"; defaults to "%a, %d %b %Y at %H:%M GMT".

 - If "use_localtime" is nonzero, the date will be converted to the
   user's local timezone. If it is zero (default), it will be in GMT.

 - "date_locale" can be set to a "locale" (see setlocale(3)) which
   will be used when formatting the date (e.g. I would set it to
   "de_DE" to get the german names for days and months when posting to
   de.*). Defaults to "C" (standard English).

The original reason for writing this patch was that it is confusing
(and taking up much space) to have all these different date formats
and time zones on your screen. Having written a patch for this, I
thought it would be nice to have the date in the same language as the
rest of "followup_string", so I added "followup_date_format" and
"date_locale".

I found the patch a little too long to post it to the newsgroup (~200
lines), but will gladly send it to anybody who is interested in it via
e-mail.
-- 
Kind regards,
    Thomas Schultz

Re: [slrn] Patch: Formatted output of dates
#49890
Author: Heikki Kantola
Date: Fri, 16 Jul 1999 00:00
28 lines
1929 bytes
Thomas Schultz <tststs@gmx.de> informed
news.software.readers with the following:
>The original reason for writing this patch was that it is confusing
>(and taking up much space) to have all these different date formats
>and time zones on your screen. Having written a patch for this, I
>thought it would be nice to have the date in the same language as the
>rest of "followup_string", so I added "followup_date_format" and
>"date_locale".

Sounds nice, looks like I can get rid of my ugly date string translation
(en -> fi) macro[1]...

>I found the patch a little too long to post it to the newsgroup (~200
>lines), but will gladly send it to anybody who is interested in it via
>e-mail.

Can't you put it on some web page or ftp site? Actually, I could maybe
put it on my pages once I get the patch...

[1] see beginning of <URL:http://www.ling.helsinki.fi/users/hkantola/
slrn.sl> if interested.
-- 
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.

Re: [slrn] Patch: Formatted output of dates
#49902
Author: Thomas Schultz
Date: Fri, 16 Jul 1999 00:00
22 lines
1643 bytes
On Fri, 16 Jul 1999 at 18:10 GMT, Heikki Kantola <hezu@iki.fi> wrote:

> Sounds nice, looks like I can get rid of my ugly date string
> translation (en -> fi) macro[1]...

I just tried out the Finnish locale and it seemed to work fine (as far
as I could tell without speaking Finnish ;).

>> I found the patch a little too long to post it to the newsgroup (~200
>> lines), but will gladly send it to anybody who is interested in it
>> via e-mail.
> Can't you put it on some web page or ftp site? Actually, I could
> maybe put it on my pages once I get the patch...

I don't have a homepage (yet), but feel free to put it on your own
page. I'll send it to you as an e-mail attachment. Maybe you could
post the URL once it's uploaded.
-- 
Kind regards,
    Thomas Schultz

Re: [slrn] Patch: Formatted output of dates
#49911
Author: Heikki Kantola
Date: Sat, 17 Jul 1999 00:00
23 lines
1825 bytes
Thomas Schultz <tststs@gmx.de> informed
news.software.readers with the following:
>On Fri, 16 Jul 1999 at 18:10 GMT, Heikki Kantola <hezu@iki.fi> wrote:
>>> I found the patch a little too long to post it to the newsgroup (~200
>>> lines), but will gladly send it to anybody who is interested in it
>>> via e-mail.
>> Can't you put it on some web page or ftp site? Actually, I could
>> maybe put it on my pages once I get the patch...
>
>I don't have a homepage (yet), but feel free to put it on your own
>page. I'll send it to you as an e-mail attachment. Maybe you could
>post the URL once it's uploaded.

Ok, one can now fetch that patch from <URL:http://www.iki.fi/hezu/
patch_slrn_date.diff>. 

-- 
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