6.4. db_date

This tag returns the time of last access of the database source file.

6.4.1. Summary

    [db_date table* format*]


Positional parameters: The first line shows the usage with positional parameters (given in order). The second line shows usage with named parameters.


Parameters Description Default
table Table name. products
format POSIX time format string %A %d %b %Y
Other_Characteristics  
Invalidates cache No
Macro No
Has end tag No

Tag expansion example:

    [db-date]
    [db-date cat]
    [db-date table=cat format="%d %b %Y"]
---
    Wednesday 02 May 2001 (products.txt)
    Wednesday 03 May 2001 (cat.txt)
    03 May 2001 (cat.txt)

ASP-like Perl call:

    $Tag->db_date( { table => cat,
                    format => "%d %b %Y", } );

or similarly with positional parameters,

    $Tag->db_date( "cat", "%d %b %Y" );

6.4.2. Description

This tag returns the time of last access of the database source file.

6.4.2.1. table

Table name. Defaults to products if not specified.

6.4.2.2. format

POSIX time format string. See Unix strftime(3) manpage for details. Defaults to '%A %d %b %Y' when not specified.