currentdate
Summary
Returns the timestamp of the current date/time.Usage
currentdate()
Returns
The current date/time as a UNIX timestamp.Description
This operator returns the UNIX timestamp for the current date/time.
Examples
Example 1
{def $timestamp=currentdate()} Current timestamp: {$timestamp}
Outputs the current timestamp.
Example 2
{def $timestamp=currentdate()} Current date/time: {$timestamp|l10n( 'shortdatetime' )}
Outputs the current date/time in a user friendly format.
Balazs Halasy (05/02/2004 10:31 am)
Balazs Halasy (04/05/2005 1:42 pm)
Comments
Possible improvements in this help
Tuesday 30 August 2005 8:48:46 pm
Gerald
Re: Possible improvements in this help
Wednesday 28 December 2005 9:55:52 am
William Steenbergh
{input|datetime( 'preset', ['arguments']}
Arguments is optional, and only used when the preset is not defined in your datetime.ini, but when using the setting 'custom'. The function description is in the documentation here ( http://ez.no/doc/ez_publish/techn...ng_and_internationalization/datetime ) and it contains a table with all formatting options. So this:
is cheating :-)