Couldn’t sleep. Fully working and tested example. I choose to go with magic function because it’s only called on signal. It might make things speedier not being called every tick. Shouldn’t need to update in real time I would think, unless displaying hours/min/sec.
// Date
function updateTimestamp() {
local days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
local months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
local now = date();
return now.day + "/" + months[now.month] + "/" + now.year;
}
local timestamp = fe.add_text("[!updateTimestamp]", 0, 0, fe.layout.width, fe.layout.height/20);