You don't get it from Minetest, you get it from Lua's os.date. A real life time stamp is much more readable than a in game timestamp.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local date_str = os.date("%Y-%m-%d %H:%M")
will give something like "2015-12-23 20:06". That's the current time.
To show instead something like "100 Minetest Days ago", which I don't recommend, use minetest.get_gametime() or something, and store the game time with the signature, then make the strings when showing the formspec. Be warned that get_gametime() isn't reliable and is liable to being reset (eg: when env_meta.txt is corrupted, which happens a lot)
EDIT: I forgot to say, this is a cool idea and a nice mod.