MYSQL Date and Time Operations
Show the mysql questions stored that were asked 3 to 10 hours ago (180 to 600 minutes ago):
MySQL manual pages for TIMESTAMPDIFF().
Beware Do not try to use expressions like CURDATE() + 1 for date arithmetic in MySQL. They don't return what you expect, especially if you're accustomed to the Oracle database product. Use CURDATE() + INTERVAL 1 DAY instead.