How can I round times in MySQL to the nearest 15 minutes (e.g. 0,15,30,45)?
SELECT FROM_UNIXTIME( TRUNCATE(UNIX_TIMESTAMP(NOW()) / 900,0)*900);
This can be generalized to round to any time value. 900 seconds = 15 minutes. You can replace the 900 with any other rounding factor.