Convert ingame time to millihours and calculate the timestamp from this.
It results in a default timestampo that is parsed by default date and
time functions.
Replacement variables:
{24h} = 24 hours time
{12h} = 12 hours time
{min} = minutes
{its} = ingame timestamp
For some reason I was not able to get the am/pm indicator (`%p`) so 12
hours format is only the time and no optional indicator.
The mod will be rewritten from scratch with modern code for most recent
Minetest (feature-complete 5.0.0 pre-release version so when 5.0.0 will
be released the mod will be ready)
See https://gitlab.com/4w/mtimer/issues/3 for status
Chat commands alwys start with `/mtimer` and then the player defines
what action to perform and adds a payload.
/mtimer help
/mtimer show
/mtimer set setting value
Issue: https://github.com/dsohler/mtimer/issues/1
Before all variables and “constants” (configuration variables) were
stored in one single global table. Now the players get custom attributes
set. This allows player-based displaying of the timer information.
This will be done in subsequent commits.
Tracking issue: https://github.com/dsohler/mtimer/issues/1
According to the Lua documentation using globals is slower than using
locals. Before this commit xTend mods used a lot of stuff from the
global _xtend table. A lot of those uses was not necessary.