is.day function

determines if measurement was taken during the daytime