---
title: "HOUR"
description: "De SQL-functie HOUR haalt het uur uit een datum/tijd."
language: nl
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/nl/docs/invantive-universalsql/grammar/sql-functions/hour
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/hour
updated: 2026-12-04T13:41:35Z
license: https://documentation.invantive.eu/nl/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> HOUR[HOUR]:::quoted
    HOUR --> End((END))
```

## Doel
De SQL-functie `HOUR` haalt het uur uit een datum/tijd.

Zie ook [[DAY]], [[MICROSECOND]], [[MILLISECOND]], [[MINUTE]], [[MONTH]], [[SECOND]] en [[YEAR]].

Parameters:
- Invoer (`datetime`): de datum/tijd waaruit de uren moeten worden geëxtraheerd.

Retourneert: het uur als `int32`.

## Voorbeelden
Het volgende voorbeeld haalt de uren uit de huidige systeemdatum/-tijd in UTC:
```sql
select hour(sysdateutc)

-------------------
13
```
Het volgende voorbeeld haalt de uren op uit 12:00 uur op 1 januari 1, 2026:
```sql
select hour(to_date('20260101120000', 'YYYYMMDDHH24MISS'))

-------------------
12
```

