Spaniard here.
School starts at 9. Work can vary, but 8-9 is common. Typical breakfast is coffee and a pastry, but some people will have something savory instead. Not the most common, though.
Lunch is at 2pm. Restaurants usually take customers from 1 to 3.30 pm. If you have lunch at home, a proper meal is in order, but lately, less and less people can do this. So snacking for lunch during work days is becoming more common, sadly.
Dinner is at 9pm but there is a tendency to move this earlier, particularly when eating at home on work days. Restaurants take customers from 8 to 10pm, and a dinner out can last until past midnight.