Article View: news.software.readers
Article #141531Re: [Dialog]
From: foxidrive
Date: Sun, 18 Jan 2004 18:03
Date: Sun, 18 Jan 2004 18:03
56 lines
2987 bytes
2987 bytes
On Sun, 18 Jan 2004 16:58:19 GMT, foxidrive wrote:
> On Sun, 18 Jan 2004 17:32:33 +0100, Frank Lekens wrote:
>
>> I've tried out this script to change the date notation in the date column:
>> http://40tude.com/dialog/wiki/index.php/ScriptTwoDigitYear
>>
>> For me it doesn't work. Instead of '18-01-04' or '18-1-04', the date is now
>> displayed as '18-1-24'.
>>
>> Is something wrong with the script maybe?
>
> I suspect the author of the script uses a date format with 2 digits for day
> and month (18/01/2004)
Here you go, my first pascal program. Be gentle. ;)
I have only tested it in my own dd/mm/yyyy date format, but I am fairly sure
that it'll work in most locations.
Watch for line wrapping.
program OnArticleListPaint;
// removes the century from the "date time" column.
// idx in the line following is the Position of the date/time column
// on your screen (+/- column doesn't count)
const Idx=4;
var d:integer;
c:widestring;
function
OnArticleListPaint(PaintString:widestring;ColumnIndex:integer):widestring;
begin
for d:= 4 to length(paintstring) do
begin
c := copy(paintstring, d, 1);
if (c = '/') or (c = '-') or (c = '.') then
begin
if ColumnIndex = Idx then
PaintString := Copy(PaintString, 1, d) + Copy(PaintString, d+3, length(paintstring)-d+3);
result := paintstring;
exit;
end;
end;
result := paintstring;
end;
begin
end.
Technical Details
Message-ID:
<2rxogx41x2sg.w1fcfpnwq1nu$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!news-out.cwix.com!newsfeed.cwix.com!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mailReferences:
<16jk4x86rgg92$.dlg@coconino.nl> <wkdwnbaov1ug.mx23ia318zs4$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <2rxogx41x2sg.w1fcfpnwq1nu$.dlg@40tude.net>
Subject: Re: [Dialog]
Date: Sun, 18 Jan 2004 18:03:58 GMT
From: foxidrive <foxidrive@Shotmail.com>
References: <16jk4x86rgg92$.dlg@coconino.nl> <wkdwnbaov1ug.mx23ia318zs4$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!news-out.cwix.com!newsfeed.cwix.com!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1 (e0adc3a4.338.183)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Face: ,C9+5-,tl2P/lP`;
cakJqFV\gH+G#W0'-Lv=V>t6AGNr]v#I0OP(s1vQKTHxfUbKjDTZ+ku x5\8h8)C{:;
Vsp5C{C'k<v!~ox#IOg*%^+
X-Original-NNTP-Posting-Host: 220.240.67.61
X-Original-Trace: 19 Jan 2004 05:03:57 +1100, 220.240.67.61
Lines: 56
NNTP-Posting-Host: 203.194.27.1
X-Complaints-To: abuse@comindico.com.au
X-Trace: news.optus.net.au 1074449038 203.194.27.1 (Mon,
NNTP-Posting-Date: Mon, 19 Jan 2004 05:03:58 EST
Organization: Comindico Australia - reports relating to abuse should be sent
to abuse@comindico.com.au