How to do day and night cycle of a city?

he has a simple and a complex day night. the complex one uses less than .5 ms in my project