here's another solution...
put this right into the template itself:
<%GT::Date::date_get('', "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%")%>
or if you really want to put it in globals (so that you can change the format of the date w/o having to modify every template):
'timedate' => 'sub { return GT::Date::date_get('', "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%") }'
or another solution...
'timedate' => 'sub { my $time = localtime(); return GT::Date::date_transform($time, "%ddd% %mmm% %dd% %HH%:%MM%:%ss% %yyyy%", "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%"); }'
Adrian
put this right into the template itself:
<%GT::Date::date_get('', "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%")%>
or if you really want to put it in globals (so that you can change the format of the date w/o having to modify every template):
'timedate' => 'sub { return GT::Date::date_get('', "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%") }'
or another solution...
'timedate' => 'sub { my $time = localtime(); return GT::Date::date_transform($time, "%ddd% %mmm% %dd% %HH%:%MM%:%ss% %yyyy%", "%HH%:%MM% | %dddd%, %mmmm% %d%, %yyyy%"); }'
Adrian