How does the pineal transmit information to the rest of the body about the time of day and season?

As part of the endocrine system, the pineal synthesizes and secretes a hormone called melatonin directly into the bloodstream