HOUR allows you to retrieve the hour from a datetime.
HOUR(d)
In this example you get the hour from the datetime field whn.
whn
SELECT HOUR(whn) AS v ,whn ,wht FROM eclipse