[Cppcms-users] How to format readable date from unix timestamp within template?
Brought to you by:
artyom-beilis
|
From: augustin <aug...@ov...> - 2013-12-08 05:59:59
|
Hello,
How to format a readable date from a unix timestamp within a template?
I thought it would be something straightforward to do but I seem to be stuck.
I've spent a fair amount of time reading the API documentation, the cppcms
wiki, and code examples found in cpp blog, but the only thing I ever get
displayed within my application is the unix timestamp itself.
I have tried all of the following within my .tmpl file, but none of them
actually filter the timestamp:
r.date_returned is a time_t unix timestamp.
<% gt "{1,datetime=s}" using r.date_returned %>
<%= r.date_returned | date %>
<%= r.date_returned | strftime("%d/%m/%Y") %>
What am I missing?
thanks,
augustin.
|