timeofday

You can find out current time if you use Minetest. Get timeofday.

Float, 0...1; 0 = midnight, 0.5 = midday.