Why can a shadow tell the time?

Milo experiment guide: make a sundial and track moving shadows