The moon is set or is set

And whoever sees that the moon has set or is at sunset, then the matter in which it is set has become at its end, and likewise at the beginning of the night or the middle or the end of the night may pass from the matter as long as it has passed from it .