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 fmt="%ld">\n'
Received on Fri Jan 9 05:41:18 2004