Article View: news.software.readers
Article #27453Re: slrn: What to do with scored articles?
From: John E. Davis
Date: Mon, 04 Nov 1996 00:00
Date: Mon, 04 Nov 1996 00:00
33 lines
1762 bytes
1762 bytes
On 28 Oct 1996 10:21:47 GMT, Heikki Kantola <hkantola@cc.Helsinki.FI>
wrote:
>ObNewSlrnQ: Is there any easy way to get only parts of date and time
>as the followup attribution?
You can construct it yourself by writing a function that calls
extract_article_header to grab the Date and then pass it through a
function such as:
define parse_date (date)
{
variable date_part, time_part;
% This code assumes that dates are of the form:
% 28 Oct 1996 10:21:47 GMT
% If other formats are involved, one would use the string_match and
% string_match_nth intrinsics.
date_part = substr (date, 1, 11);
time_part = substr (date, 13, strlen (date));
return (date_part, time_part);
}
The you would use `set_string_variable' to define the follow-up format
string and finally call the followup function.
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Technical Details
Message-ID:
<slrn57s9n3.div.davis@aluche.mit.edu>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:
<slrn5722c0.o7f.pfd@zip0.zipnet.net> <slrn45741va.qks.hezu@vesuri.helsinki.fi> <slrn574m4h.3nf.davis@aluche.mit.edu> <5521fr$sjr@oravannahka.Helsinki.FI>Show Full Headers
Complete Article Headers
Message-ID: <slrn57s9n3.div.davis@aluche.mit.edu> Subject: Re: slrn: What to do with scored articles? Date: Mon, 04 Nov 1996 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5722c0.o7f.pfd@zip0.zipnet.net> <slrn45741va.qks.hezu@vesuri.helsinki.fi> <slrn574m4h.3nf.davis@aluche.mit.edu> <5521fr$sjr@oravannahka.Helsinki.FI> 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: 194348883 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers