What time is it?

I need to know the time of day in my sketch... I'm on an Arduino Mega 2560. Is there a RTC?

Arduino MEGA2560 doesn't have an RTC. You can get a popular RTC shield or module for arduino, based on DS1307 chip, for around $10 in lots of internet stores.

Example: https://www.adafruit.com/products/264