Article View: news.software.readers
Article #144296Re: [Dialog] shortened date possible?
From: Jeff Relf
Date: Sun, 29 Feb 2004 06:49
Date: Sun, 29 Feb 2004 06:49
59 lines
3282 bytes
3282 bytes
Hi Kristi, You asked,
" is there an option or something
to allow Dialog to display a simplified date " .
The date fields in the list of messages
can be set with a script.
I always use a large fixed-width font,
so mine is always 9 characters wide, for example:
9 10.30 // 10:30 AM on the 9th,
10. 9.15 // 9:15 PM on the 10th.
^ This is the PM indicator .
I only ever keep 5 days worth of posts ,
so I never want to see the month , much less the year .
The script below only works
if your short date in Windows is set to the m/d/yy :
control panel --> Regional settings --> Date ( a Tab )
You need to paste and compile the script here:
Settings --> Scripting --> Scripting
--> Event Scripts ( a tab ) --> OnArticleListPaint
If your date-column isn't at 3
( counting from the left and starting with zero )
then you need to change that number.
Program OnArticleListPaint;
function OnArticleListPaint( PaintString: widestring;
ColumnIndex: integer ): widestring;
var X: Integer;
MM_DD, HH_MM_SS_AM, BHH_MM, Day, PM, H, M : WideString;
begin
case ColumnIndex of 3: // Date column , from 0
begin
X := pos( '/', paintstring);
MM_DD := copy( paintstring, X+ 1, 2 );
X := pos( ' ', paintstring);
BHH_MM := copy( paintstring, X, 6 );
HH_MM_SS_AM := copy( paintstring, X + 1, 10 );
X := pos( ' ', HH_MM_SS_AM);
PM := copy( HH_MM_SS_AM, X + 1, 1 );
if PM = 'P' then PM := '.' else PM := ' ';
Day := copy( MM_DD, 1, 2);
if copy( Day, 2, 1) = '/' then
Day := ' ' + copy( Day, 1, 1);
if copy( BHH_MM, 3, 1) = ':' then begin
H := copy( BHH_MM, 1, 2); M := copy( BHH_MM, 4, 2);
end else begin
H := copy( BHH_MM, 2, 2); M := copy( BHH_MM, 5, 2);
end;
paintstring :=
Day + PM + ' ' + H + '.' + M ;
end;
end; // case
result := paintstring;
end;
begin end.
Technical Details
Message-ID:
<si70wuxfrcgv$.dlg@x.Jeff.Relf>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!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc70.webusenet.com!c03.atl99!news.usenetserver.com!fu-berlin.de!uni-berlin.de!64-40-55-60.ncplus.NET!not-for-mailReferences:
<bvceo6t1q2xv.dlg@mymoose.net>Show Full Headers
Complete Article Headers
Message-ID: <si70wuxfrcgv$.dlg@x.Jeff.Relf>
Subject: Re: [Dialog] shortened date possible?
Date: Sat, 28 Feb 2004 22:49:14 -0800
From: Jeff Relf <Me@Privacy.NET>
References: <bvceo6t1q2xv.dlg@mymoose.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!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc70.webusenet.com!c03.atl99!news.usenetserver.com!fu-berlin.de!uni-berlin.de!64-40-55-60.ncplus.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 59
NNTP-Posting-Host: 64-40-55-60.ncplus.net (64.40.55.60)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1078037324 57061892 I 64.40.55.60 ([177113])
User-Agent: 40tude_Dialog/2.0.10.1 (8bd60781.171.180)
X-Face: V|9[5IY]/OB15+<DlkA6*rsaeJb?9HnEE@[CAy1koT:N4Ew'*#35g{6z1>}/e:m!6.qw'Kzn@$#""CJQl/Uv"R,&G?sNO"{#LEEnS3lQRnT#Ql#'3ySQ80}u7Q<`+B@;
Y; 81AnK'_PD^fm.3T/<-i~YdZ%Q}b?:-]{Lr#s6.N,r(}
X-Newsreader: Win98 C++