@date - Date Formatting
The @date
directive in Ahmed PHP Template Engine allows you to format dates in a human-readable way.
Syntax
format
: The date format following PHP'sdate()
function syntax.timestamp
: (Optional) A Unix timestamp. If omitted, the current date and time are used.
Example
Output
Notes
The format string follows PHP's
date()
function patterns.If no timestamp is provided, it defaults to the current time.
Useful for displaying timestamps in a user-friendly format.
Last updated