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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.