timestamp in template .. how ?

Author Message

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 ?

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

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

eZ debug

Timing: Jan 18 2025 10:52:19
Script start
Timing: Jan 18 2025 10:52:19
Module start 'layout'
Timing: Jan 18 2025 10:52:19
Module start 'content'
Timing: Jan 18 2025 10:52:21
Module end 'content'
Timing: Jan 18 2025 10:52:21
Script end

Main resources:

Total runtime1.4030 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 589.3438152.6250
Module start 'layout' 0.00930.0037 741.968839.4453
Module start 'content' 0.01301.3885 781.4141532.2813
Module end 'content' 1.40150.0015 1,313.69538.1641
Script end 1.4030  1,321.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2581160.0002
Check MTime0.00150.1063160.0001
Mysql Total
Database connection0.00070.052610.0007
Mysqli_queries1.348296.0890570.0237
Looping result0.00060.0406550.0000
Template Total1.364797.320.6824
Template load0.00250.180120.0013
Template processing1.362297.086720.6811
Template load and register function0.00050.036310.0005
states
state_id_array0.00090.063710.0009
state_identifier_array0.00090.062320.0004
Override
Cache load0.00210.1485160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.047920.0003
Fetch class attribute name0.00150.110040.0004
XML
Image XML parsing0.00060.044520.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00210.1471160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs