why does my air conditioning not work only when im trying to sleep?

and when its day time ohhhh gosh its workimg good and its cold.. 😀😀😀😀😀😑😑😑😑😑😐