Thanks. Works alright but returns a weird string when date was null. Any
workaround? Or some Perl hack is the way to go?
FMC Computing Services
Bedford Park SA
Ph: 8204 6178
From: email@example.com [mailto:firstname.lastname@example.org] On
Behalf Of Bill Moseley
Sent: Friday, 9 January 2004 4:08 PM
To: Multiple recipients of list
Subject: [SWISH-E] Re: Date Format
On Thu, Jan 08, 2004 at 08:41:03PM -0800, Ahmad, Zeeshan (FMC) wrote:
> How can I change the date format shown by swish.cgi - say
> 09 September 2003 instead of
> 2003-09-29 12:13:49 Cen. Australia Standard Time
Below is an old message I still had in my archives. It might be a
Also you might look over the docs here:
there's some discussion of date formating.
And if that's not enough:
$ swish-e -w not dkdkd -x '<swishlastmodified fmt="%d %B %Y">\n' -H0
08 January 2004
Post again if you need more help.
From: Bill Moseley <email@example.com>
To: "Ahmad, Zeeshan (FMC)" <Zeeshan.Ahmad@fmc.sa.gov.au>
Date: Tue, 6 Jan 2004 21:59:51 -0800
Subject: Re: RE: [SWISH-E] RE: swish.cgi not returning results from search
On Wed, Jan 07, 2004 at 02:26:17PM +1030, Ahmad, Zeeshan (FMC) wrote:
> How can I change the Last Modified date format displayed via CGI?
Seems to be a number of posts in the archives about this. I searched
the swish-e list archives for
And the first hit seems to have something:
If you happen to be using Template-Toolkit for output then it's best to
generate a timestamp and then format in your template (as mentioned in
that post). That's using a %ld format.
moseley@bumby:~$ swish-e -w not dkdk -H0 -x '<swishlastmodified>\n'
2004-01-05 13:58:48 PST
moseley@bumby:~$ swish-e -w not dkdk -H0 -x '<swishlastmodified
Received on Mon Jan 12 02:33:40 2004