Created
October 26, 2020 14:51
-
-
Save fabioricali/6ac88308a6f294fff33ef97891650842 to your computer and use it in GitHub Desktop.
MYSQL: get quarter of hour from a date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SEC_TO_TIME((TIME_TO_SEC(NOW()) DIV 900) * 900) AS QUARTER_HOUR; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment