timestamp in template .. how ?

timestamp in template .. how ?

Friday 16 May 2003 7:13:00 pm - 2 replies

Author Message

Selmah Maxim

Friday 16 May 2003 7:21:06 pm

LOL .. found it :)

currentdate() = timestamp

so if u wanna get the days of any artical :
{floor(div(sub(currentdate(),$node.object.published),86400))}

hope this will usefull for some1 :)

Tony Wood

Saturday 17 May 2003 5:22:55 am

Selmah,

It would b good if you could create a quick howto in contributed documents

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

You must be logged in to post messages in this topic!

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