daylight class: is_daylight method added