strfrtime in a template?

SneakyDave

Well-known member
I have an external application that updates a custom user profile field with an integer time.

Is there a way to format the date/time with strfrtime in an xF template or do I need to create some kind of callback to do that?
 
Now I have the same question about sprintf. Can't seem to find that anywhere, or even to convert a value to 2 decimal places.

I did find the useful xen:calc function though, so all is not lost.
 
Top Bottom