Forums / Developer / how to get the current time in Exponential?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

how to get the current time in Exponential?

Author Message

xiao jc

Monday 24 May 2004 11:31:20 pm

thanks alot

Tore Skobba

Monday 24 May 2004 11:54:12 pm

In a template do {currentdate()}, this will return time in seconds since 1970. In order to format it do {currentdate()|datetime(custom, "%Y %m %d)}, which will return date on this form 2004 10 26

See here for more:
http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/operators/miscellaneous

http://www.ez.no/ez_publish/documentation/customization/tips_tricks/date_and_time_formats

Cheers
Tore