rename method SetHourWindow to silence compiler warnings