How can I calculate this inside a template?

Status
This content is read-only, or is not open for further replies.

grantus

Guest
offline
Inside my template I need to calculate a time from my db table (in UNIX format) then divide a value, minus the current time, and then format it.

For example:

Code:

({$item.end_date} / 60) - {$xf.time}

Is $xf.time already in UNIX format?

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom