add minetest.register_on_time_change

this function allows mods to react easier if someone uses /time