Original: The parietal eye is part of the pineal complex, another part of which is the pineal gland, which in tuatara secretes melatonin at night.
Simplified: The parietal eye is part of the pineal system. The animal's pineal gland secretes melatonin at night.