there is a table name events which has the time of the work of different machine, each machine per day work different hours. i would like to get the start time and end time of each machine for each day of month
timestamp | machine_id
---------------------+------------
2021-11-10 12:00:14 | 24
2021-11-10 12:10:14 | 24
2021-11-16 07:18:44 | 9
2021-11-16 07:21:13 | 5
2021-11-16 07:21:14 | 11
2021-11-15 12:30:35 | 24
2021-11-15 12:40:35 | 24
2021-11-15 12:50:35 | 24
2021-11-15 13:00:35 | 24
2021-11-15 13:10:35 | 24
2021-11-15 13:20:35 | 24
2021-11-15 13:30:35 | 24
2021-11-16 07:10:59 | 5
2021-11-16 07:11:14 | 11
2021-11-16 07:11:13 | 5
2021-11-16 07:11:56 | 12
2021-11-16 07:07:47 | 21
2021-11-16 07:08:51 | 21
2021-11-16 07:13:44 | 22