Article View: news.software.readers
Article #48898Re: thanks for support - Xnews 2.05.24 is out, btw
From: Luu Tran
Date: Fri, 28 May 1999 00:00
Date: Fri, 28 May 1999 00:00
30 lines
1767 bytes
1767 bytes
Luc Cluitmans <nospam@tue.nl> wrote in <8DD49BFD519990312175977@news.tue.nl>: >Eh simple suggestion: have two different user formats. > Actually, there are 4, plus the popup hint function SmartDateFmt( DateTime: TDateTime):string; overload; var Diff:integer; begin Diff:=Trunc( SysUtils.Now-DateTime); if Diff<0 then Diff:=-Diff; // this should't happen, but... if Diff=0 then Result:=FormatDateTime( 'hh:nna/p', DateTime) else if Diff<7 then Result:=FormatDateTime( 'ddd dd', DateTime) else if Diff<365 then Result:=FormatDateTime( 'mmm dd', DateTime) else Result:=FormatDateTime( 'mm/dd/yyyy', DateTime); end; I don't feel like having 5 user date formats, so I'll stick with a simple Use24hrclock toggle. Hmm, looking at this again, I just realize I shouldn't use mm/dd/yyyy as this doesn't translate well outside of the US. -- luu author of Xnews -- http://xnews.3dnews.net
Technical Details
Message-ID:
<8DD442C41luutrangeocities@news.mindspring.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8DD163DB9luutrangeocities@news.mindspring.com> <8DD285B2119990312175977@news.tue.nl> <8DD269DB8luutrangeocities@news.mindspring.com> <8DD374758haustintpgicomau@dnews.tpg.com.au> <8DD3EC7A2luutrangeocities@news.mindspring.com> <8DD49BFD519990312175977@news.tue.nl>Show Full Headers
Complete Article Headers
Message-ID: <8DD442C41luutrangeocities@news.mindspring.com> Subject: Re: thanks for support - Xnews 2.05.24 is out, btw Date: Fri, 28 May 1999 00:00:00 +0000 From: luu@xnews.3dnews.net.invalid (Luu Tran) References: <8DD163DB9luutrangeocities@news.mindspring.com> <8DD285B2119990312175977@news.tue.nl> <8DD269DB8luutrangeocities@news.mindspring.com> <8DD374758haustintpgicomau@dnews.tpg.com.au> <8DD3EC7A2luutrangeocities@news.mindspring.com> <8DD49BFD519990312175977@news.tue.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 483132900 Organization: Daedalus User-Agent: Xnews/2.05.27p Newsgroups: news.software.readers