Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [vespa180] Date time calculations

Quote Reply
Re: [vespa180] Date time calculations In reply to
Try the global below:

sub {
my ($date, $format) = @_;
require GT::Date;
my $unix_time = GT::Date::timelocal(GT::Date::parse_format($date, "%yyyy%-%mm%-%dd% %hh%:%MM%:%ss%"));
return GT::Date::date_get($unix_time, $format);
}

Now you can use:
<%global_name($var_date, "%HH%:%MMM%:%ss%")%>

Hope that helps,
TheStone.

B.
Subject Author Views Date
Thread Date time calculations vespa180 3760 Oct 29, 2003, 6:54 AM
Thread Re: [vespa180] Date time calculations
604 3643 Oct 29, 2003, 11:02 AM
Thread Re: [TheStone] Date time calculations
vespa180 3634 Oct 30, 2003, 7:14 AM
Post Re: [vespa180] Date time calculations
604 3621 Oct 30, 2003, 10:55 AM