The Moon's position relative to Earth and the Sun determines the moonrise and moonset time. For example, a last quarter rises at midnight and sets at noon. A waning gibbous is best seen from late night to early morning.