check day or night