Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Luc1] Last update - database

Quote Reply
Re: [Luc1] Last update - database In reply to
In this case, you have to create a global like:

sub {
my $format = shift || '%yyyy%-%mm%-%dd%';
require GT::Date;
return GT::Date::date_get(time, $format);
}

Now, you can use those tags below in the templates:
<%global_name('%mm%-%dd%-%yyyy%')%>: displays current day
<%global_name('%HH%:%MM%-%ss%')%>: displays current time

Hope that helps,

TheStone.

B.
Subject Author Views Date
Thread Last update - database Luc1 3864 Oct 26, 2003, 11:23 AM
Thread Re: [Luc1] Last update - database
604 3687 Oct 28, 2003, 2:38 PM
Thread Re: [TheStone] Last update - database
Luc1 3683 Oct 29, 2003, 9:00 AM
Post Re: [Luc1] Last update - database
Luc1 3672 Oct 29, 2003, 10:09 AM