Article View: news.software.readers
Article #132574Reformatting dates and times for slrn
From: J.B. Nicholson-Owens
Date: Wed, 03 Sep 2003 10:38
Date: Wed, 03 Sep 2003 10:38
18 lines
2202 bytes
2202 bytes
DC wrote:
> I have been Googling my butt off, today, and I *thought* I saw a post
> that indicated that a macro had been written for this.
I think one could write a macro for this, but I don't recall writing one to
do this task. Ideally, I'd want to do something like what Date::Manip
offers Perl programmers--take in a date/time in all the formats you'll see
in netnews articles and then reformat the date to make it more convenient
for my understanding ("Yesterday", "Today, 3 hours and 10 minutes ago",
"2003-September-23 3:40p", etc.)--so I can use them visually. All recorded
dates/times would be in appropriate standard formats.
It seems overkill in both dependencies and startup time to repeatedly call a
perl program to do the job but I haven't really seriously considered an
alternative: write the date/time manipulation routines needed in S-Lang
(which would involve minimal requirements and virtually no startup time, but
may mean time-consuming reinvention of this particular wheel).
Technical Details
Message-ID:
<slrnblbjqj.rbb.jbn@forestfield.org>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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mailReferences:
<slrnbl1r1e.3iq.dcmoose@moosemeat.localhost.ca> <788721-8gn.ln1@news.gates_of_hell.INVALID> <slrnbl1tgk.3mt.dcmoose@moosemeat.localhost.ca> <h0b721-bun.ln1@news.gates_of_hell.INVALID> <slrnbl25vq.496.dcmoose@moosemeat.localhost.ca> <slrnbl29mf.hr.mofo@sdf.lonestar.org> <slrnbl2a7b.4ms.dcmoose@moosemeat.localhost.ca>Show Full Headers
Complete Article Headers
Message-ID: <slrnblbjqj.rbb.jbn@forestfield.org> Subject: Reformatting dates and times for slrn Date: Wed, 03 Sep 2003 10:38:25 +0000 From: "J.B. Nicholson-Owens" <jbn@forestfield.org> References: <slrnbl1r1e.3iq.dcmoose@moosemeat.localhost.ca> <788721-8gn.ln1@news.gates_of_hell.INVALID> <slrnbl1tgk.3mt.dcmoose@moosemeat.localhost.ca> <h0b721-bun.ln1@news.gates_of_hell.INVALID> <slrnbl25vq.496.dcmoose@moosemeat.localhost.ca> <slrnbl29mf.hr.mofo@sdf.lonestar.org> <slrnbl2a7b.4ms.dcmoose@moosemeat.localhost.ca> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 17 NNTP-Posting-Host: forestfield.org (208.216.67.173) X-Trace: news.uni-berlin.de 1062585505 15331084 208.216.67.173 (16 [35848]) Mail-Copies-To: nobody User-Agent: slrn/0.9.8.0 (Linux)