I knew that the prepositions c (from, since) and до (until) take genitive.

However, I found that these periods are correct, and I don’t understand.

С одиннадцати (часов) до часа.
С часу до пяти (часов).

Thanks for the help.