How would I go about getting what time it is in the minetest game? Is there API for it? Furthermore, what does each unit in minetest time relate to in real life?
Posted: Mon Apr 22, 2013 02:06
by kaeza
Use minetest.env:get_timeofday()
The number is 0-1 (0=midnight, 0.5=12:00, 0.75=18:00, etc). See my testclock here for a way to convert to the HH:MM:SS format.