Skip to content
Manual Crono SQL

hour

La función hour devuelve un número entero entre 0 y 23 que corresponde a la hora de un valor de tipo datetime.

select hour('2025-06-15 14:30:00') resultado;

El resultado es:

14

Was this page helpful?

We are here to help. If you have any problem or question, open a GitHub issue and we will get back to you as soon as possible.

Create a GitHub issue