Get the time that all employees booked at the same time in python

I have a list, every item contains a list of booked times for an employee. ex: if there are 4 employees, it will 4 items in the list of bookings below.

bookings = [[
            (datetime.datetime(2023, 1, 1, 9, 0), datetime.datetime(2023, 1, 1, 10, 0)),
            (datetime.datetime(2023, 1, 1, 14, 30), datetime.datetime(2023, 1, 1, 16, 0)),
            (datetime.datetime(2023, 1, 1, 18, 30), datetime.datetime(2023, 1, 1, 20, 0))],
            [(datetime.datetime(2023, 1, 1, 15, 0), datetime.datetime(2023, 1, 1, 16, 30)),
            (datetime.datetime(2023, 1, 1, 19, 0), datetime.datetime(2023, 1, 1, 20, 30))
            ],
            [(datetime.datetime(2023, 1, 1, 15, 30), datetime.datetime(2023, 1, 1, 17, 0)),
             (datetime.datetime(2023, 1, 1, 19, 30), datetime.datetime(2023, 1, 1, 21, 0))
            ],
            [(datetime.datetime(2023, 1, 1, 8, 30), datetime.datetime(2023, 1, 1, 9, 0)),
             (datetime.datetime(2023, 1, 1, 14, 30), datetime.datetime(2023, 1, 1, 16, 0)),
            (datetime.datetime(2023, 1, 1, 18, 30), datetime.datetime(2023, 1, 1, 20, 0))
            ]]

As above, I would like to get the time that all employees booked at the same time.

My output above, the same booked time:

[(datetime.datetime(2023, 1, 1, 15, 30), datetime.datetime(2023, 1, 1, 16, 0)),
(datetime.datetime(2023, 1, 1, 19, 30), datetime.datetime(2023, 1, 1, 20, 0))]

Please help to give the solution to resolve the above in Python. Thank you very much!

You could simplify your code (to some degree) by importing only the function that you’re going to use:

from datetime import datetime

You’ve not demonstrated how you got your output, so all we have to work with is a bunch of nested list objects, with no context.

Indices 0 to 3 are what?
And within those indices, two have indices 0 1 2 and two have indices 0 1. And within those indices, they all have indices 0 and 1.

If you can explain what all of that means, you may get the help that you’re looking for.

Nesting objects in this way, makes things much harder to work with, so I’d suggests that there could be a less complicated data structure, but without any context, I can’t be certain of that.