RSS Feed/News How can I calculate this inside a template?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,775
Points
823

Reputation:

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

For example:

Code:

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

Is $xf.time already in UNIX format?

Continue reading...
 
Status
Not open for further replies.
Top