On Mon, Dec 08, 2003 at 08:16:24PM -0800, David Wood wrote:
> Hi folks,
>
> We've just started working with SWISH::API (version 2.4), and it seems to
> be working great so far...
>
> Just one question:
>
> When running swish from the command line, with -x output formatting you can
> format dates, for example as follows:
>
> <swishlastmodified fmt=\"%m/%d/%Y\">
>
>
> When working via the API, is there an equivalent way to do that output
> formatting directly in a call like:
>
> $result->Property("swishlastmodified")
use Date::Format;
my $modified_stamp = $result->Property('swishlastmodified');
my $date = time2str('%m/%d/%Y', $modified_stamp )
if $modified_stamp;
--
Bill Moseley
moseley@hank.org
Received on Tue Dec 9 06:04:01 2003