Recognising the difference between sleep during the day and night