Forums / Setup & design / timestamp in template .. how ?
Selmah Maxim
Friday 16 May 2003 7:13:00 pm
Hi ...
i need to get the timestamp for the articales in the template files, any1 know how ?
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