Features / Usability

Features / Usability

mathematical calculation tracker field

posts: 126818 United Kingdom

Hi Mike

I think you just need the "function" date on its own. That gives you the time now as the number of seconds since 1970, the reference you want is http://doc.tiki.org/Calculations#date not really the PHP date function.

So probably something like: (untested)

(date (str H:i) (sub futureDate date))

The str H:i part gives you the format, and those you can look up on https://www.php.net/manual/en/datetime.format.php