I want to get all hours between two timestamps.
For example from 2023-02-23 14:38 to 2023-02-23 19:32
The result should be
14
15
16
17
18
19
better i get also additional the minutes in the calculated hour
| Hour | Minutes |
|---|---|
| 14 | 38 |
| 15 | 60 |
| 16 | 60 |
| 17 | 60 |
| 18 | 60 |
| 19 | 32 |
Is there a function in postgresql for this query ?
The simple solution to get the hours:
UPDATED to include minutes.